1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00

Fix bug in dotfish

This commit is contained in:
Steffo 2021-07-15 02:23:11 +02:00
parent 59a31fa7ab
commit 4986f6da9e
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -4,15 +4,16 @@ function dotfish
else else
set -g TARGET (whoami) set -g TARGET (whoami)
end end
set -g FISHCONFIG ~(echo $TARGET)/.config/fish
echo_progress "Updating fish config for: " echo_progress "Updating fish config for: "
echo_highlight "$TARGET" \n echo_highlight "$TARGET" \n
echo_progress "Pulling from Git..." \n echo_progress "Pulling from Git..." \n
git -C ~(echo $TARGET)/.config/fish pull git -C $FISHCONFIG pull
echo_progress "Fixing permissions..." \n echo_progress "Fixing permissions..." \n
chown -R "$TARGET:" ~(echo $TARGET) chown -R "$TARGET:" $FISHCONFIG
echo_progress "Update complete!" echo_progress "Update complete!"
end end