mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 14:54:23 +00:00
Change login shell on dotfish
This commit is contained in:
parent
e5a3698165
commit
05f466b1e7
1 changed files with 8 additions and 5 deletions
|
@ -22,7 +22,7 @@ function dotfish
|
||||||
echo_progress "Conflicting config detected, confirm deletion?" \n
|
echo_progress "Conflicting config detected, confirm deletion?" \n
|
||||||
if confirm
|
if confirm
|
||||||
echo_progress "Deleting old config..." \n
|
echo_progress "Deleting old config..." \n
|
||||||
rm -rf $FISHCONFIG
|
rm -rf "$FISHCONFIG"
|
||||||
else
|
else
|
||||||
echo_progress "Deletion was refused, exiting..." \n
|
echo_progress "Deletion was refused, exiting..." \n
|
||||||
return 2
|
return 2
|
||||||
|
@ -30,16 +30,19 @@ function dotfish
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if test -d $FISHCONFIG
|
if test -d "$FISHCONFIG"
|
||||||
echo_progress "Existing config detected, pulling from Git..." \n
|
echo_progress "Existing config detected, pulling from Git..." \n
|
||||||
git -C $FISHCONFIG pull
|
git -C "$FISHCONFIG" pull
|
||||||
else
|
else
|
||||||
echo_progress "No config detected, cloning from Git..." \n
|
echo_progress "No config detected, cloning from Git..." \n
|
||||||
git clone "https://github.com/Steffo99/.config-fish" $FISHCONFIG
|
git clone "https://github.com/Steffo99/.config-fish" "$FISHCONFIG"
|
||||||
end
|
end
|
||||||
|
|
||||||
echo_progress "Fixing permissions..." \n
|
echo_progress "Fixing permissions..." \n
|
||||||
chown -R "$TARGET:" $FISHCONFIG
|
chown -R "$TARGET:" "$FISHCONFIG"
|
||||||
|
|
||||||
|
echo_progress "Changing login shell..." \n
|
||||||
|
chsh -s "/usr/bin/fish" "$TARGET"
|
||||||
|
|
||||||
echo_progress "Update complete!" \n
|
echo_progress "Update complete!" \n
|
||||||
end
|
end
|
Loading…
Reference in a new issue