mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 13:35:30 +00:00
feat: dont fail if zsh shell cannot be set
This commit is contained in:
@@ -8,7 +8,7 @@ else
|
||||
# Make ZSH the default shell environment
|
||||
if [ $(cat /etc/passwd | grep $USER | awk -F ':' '{print substr($7, length($7)-3)}') != "/zsh" ]; then
|
||||
echo "Changing shell to zsh."
|
||||
chsh -s $(which zsh)
|
||||
chsh -s $(which zsh) || echo "chsh failed, leaving default shell as-is." >&2
|
||||
else
|
||||
echo "Shell is already zsh."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user