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:
parent
59a31fa7ab
commit
4986f6da9e
1 changed files with 3 additions and 2 deletions
|
@ -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
|
Loading…
Reference in a new issue