Run fish_indent over my fish functions
- ID
0327b5e- date
2025-04-23 08:14:14+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
52089b1- message
Run `fish_indent` over my fish functions- changed files
3 files, 4 additions, 4 deletions
Changed files
fish_functions/add_repo_to_path.fish (224) → fish_functions/add_repo_to_path.fish (223)
diff --git a/fish_functions/add_repo_to_path.fish b/fish_functions/add_repo_to_path.fish
index ea3b334..6e68151 100644
--- a/fish_functions/add_repo_to_path.fish
+++ b/fish_functions/add_repo_to_path.fish
@@ -1,5 +1,5 @@
function add_repo_to_path --description "Add a folder in my ~/repos directory to my PATH"
set repo_name $argv[1]
- echo "set -g -x PATH ~/repos/$repo_name \"\$PATH\"" > ~/.config/fish/conf.d/repos-$repo_name.fish
+ echo "set -g -x PATH ~/repos/$repo_name \"\$PATH\"" >~/.config/fish/conf.d/repos-$repo_name.fish
end
fish_functions/pip_sync.fish (1524) → fish_functions/pip_sync.fish (1520)
diff --git a/fish_functions/pip_sync.fish b/fish_functions/pip_sync.fish
index 89861d4..cd28e6d 100644
--- a/fish_functions/pip_sync.fish
+++ b/fish_functions/pip_sync.fish
@@ -11,7 +11,7 @@ function pip_sync --description "Make a virtualenv dependencies look like requir
if test -z "$VIRTUAL_ENV"
venv
end
-
+
# If we're on an external disk, disable the warning about being
# unable to clone files. In particular:
#
fish_functions/venv.fish (1457) → fish_functions/venv.fish (1451)
diff --git a/fish_functions/venv.fish b/fish_functions/venv.fish
index 63b70f8..fe5c809 100644
--- a/fish_functions/venv.fish
+++ b/fish_functions/venv.fish
@@ -14,11 +14,11 @@ function venv --description "Create and activate a new virtual environment"
if test "$PWD" = "$HOME"
cd $(mktemp -d)
end
-
+
# I never want to create a virtual environment in the top level of
# one of my external volumes; block it if I try -- it means I've
# run a command in the wrong directory.
- if test (dirname "$PWD") = "/Volumes"
+ if test (dirname "$PWD") = /Volumes
print_error "Can’t create a virtualenv in $PWD!"
return 1
end