Refactor how universal fish variables are set

This commit is contained in:
mitchell 2020-08-15 18:36:58 -04:00
parent d91e7a7abb
commit 5e8e764238
3 changed files with 35 additions and 31 deletions

6
sync
View file

@ -20,6 +20,8 @@ function main
set_git_user
set_fish_universal_vars
clean_up_tmp_space $cwd $start_dir
echo -s \n 'Done syncing.'
@ -80,6 +82,10 @@ function set_git_user
end
end
function set_fish_universal_vars
source ./fish_universal_vars.fish
end
function clean_up_tmp_space -a cwd start_dir
if test ! "$cwd" = 'dotfiles'
cd ..