1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-10-16 14:27:34 +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_highlight "$TARGET" \n
if test -d $FISHCONFIG
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
chown -R "$TARGET:" $FISHCONFIG