sudo shell change

This commit is contained in:
Andrejus
2020-02-26 16:39:01 +00:00
parent 8721fd1cc5
commit 7bf22b00e8

View File

@@ -27,7 +27,8 @@ readonly fish_path="$(which fish)"
if [ "$SHELL" != fish_path ]; then if [ "$SHELL" != fish_path ]; then
# Update default login shell # Update default login shell
usermod -s "$fish_path" "$USER" sudo chsh -s "$fish_path" "$USER"
sudo usermod -s "$fish_path" "$USER"
fi fi
printf "fish is default login shell\n" printf "fish is default login shell\n"