aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFivePixels <dylan.bolger00@gmail.com>2023-01-28 18:34:02 -0600
committerFivePixels <dylan.bolger00@gmail.com>2023-01-28 18:35:48 -0600
commitd8c1c0dc90dd4821cc05ec712b1e23b2538c8b1e (patch)
tree2c153e4723e92f48b574bc623774a398ea481768
parent0937b3e9b138210b0f0cd76f0b28f45e030aa648 (diff)
downloaddots-d8c1c0dc90dd4821cc05ec712b1e23b2538c8b1e.tar.xz
dots-d8c1c0dc90dd4821cc05ec712b1e23b2538c8b1e.zip
make options pretty, assume .env unchanged
-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