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

Improve dotfish

This commit is contained in:
Steffo 2021-07-15 02:27:19 +02:00
parent 4986f6da9e
commit f239e2ecea
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -9,8 +9,13 @@ function dotfish
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 if test -d $FISHCONFIG
git -C $FISHCONFIG pull echo_progress "Pulling from Git..." \n
git -C $FISHCONFIG pull
else
echo_progress "Cloning from Git..." \n
git clone "https://github.com/Steffo99/.config-fish" $FISHCONFIG
end
echo_progress "Fixing permissions..." \n echo_progress "Fixing permissions..." \n
chown -R "$TARGET:" $FISHCONFIG chown -R "$TARGET:" $FISHCONFIG