From d8c1c0dc90dd4821cc05ec712b1e23b2538c8b1e Mon Sep 17 00:00:00 2001 From: FivePixels Date: Sat, 28 Jan 2023 18:34:02 -0600 Subject: make options pretty, assume .env unchanged --- .config/fish/functions/load_dots.fish | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3