Modify sync script to use read properly; Use eval for fisher

This commit is contained in:
mitchell 2020-03-07 18:13:34 -05:00
parent 29fa831fe2
commit 2097f04323
1 changed files with 4 additions and 5 deletions

9
sync
View File

@ -27,20 +27,19 @@ rsync -aP ./.yabairc ~/
rsync -aP ./.skhdrc ~/
echo
fisher
eval fisher
set_color normal
set -l prompt 'Would you like to set your git user name and email?'
set -l set_git_user (read -p "set_color red; printf '\n$prompt (Y/n) '; set_color normal")
read -l -p "set_color red; printf '\n$prompt (Y/n) '; set_color normal" set_git_user
if test -z "$set_git_user"; or test "$set_git_user" = 'y'; or test "$set_git_user" = 'Y'
set -l name (read -P 'name: ')
read -l -P 'name: ' name
git config --global user.name $name
set -l email (read -P 'email: ')
read -l -P 'email: ' email
git config --global user.email $email
end