mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Refactor how universal fish variables are set
This commit is contained in:
parent
d91e7a7abb
commit
5e8e764238
3 changed files with 35 additions and 31 deletions
6
sync
6
sync
|
|
@ -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 ..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue