aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/fish/functions/load_dots.fish7
1 files changed, 6 insertions, 1 deletions
diff --git a/.config/fish/functions/load_dots.fish b/.config/fish/functions/load_dots.fish
index e754185..e3e150f 100644
--- a/.config/fish/functions/load_dots.fish
+++ b/.config/fish/functions/load_dots.fish
@@ -2,7 +2,11 @@ function load_dots
set -l options git
count $argv | read arg_count
if test $arg_count -eq 0
- printf "options: %s\n" $options[1]
+ printf "options: "
+ for arg in $options
+ printf "$arg "
+ end
+ printf "\n"
end
for option in $argv
switch "$option"
@@ -23,5 +27,6 @@ function load_git
git config --global $git_config_key $$env_var
end
end
+ git update-index --assume-unchanged .env
cat ~/.gitconfig
end