using exec all the time now

This commit is contained in:
staticsafe 2012-04-09 09:45:18 -04:00
parent dcbc9ffbbe
commit 8d66ebef01
1 changed files with 2 additions and 4 deletions

View File

@ -51,9 +51,11 @@ installpackages() {
changeshell() { changeshell() {
if [[ $SHELL == "/usr/bin/zsh" || $SHELL == "/bin/zsh" ]]; then if [[ $SHELL == "/usr/bin/zsh" || $SHELL == "/bin/zsh" ]]; then
printf '%s\n' "Your default shell is already zsh, continuing." printf '%s\n' "Your default shell is already zsh, continuing."
exec zsh
else else
chsh -s $(which zsh) chsh -s $(which zsh)
printf '%s\n' "Default shell changed to zsh, logout and login to see changes" printf '%s\n' "Default shell changed to zsh, logout and login to see changes"
exec zsh
fi fi
} }
@ -89,7 +91,3 @@ installpackages
changeshell changeshell
getdotfiles getdotfiles
# To make zsh work properly in FreeBSD
if [[ "$userdistro" == "FreeBSD" ]]; then
exec zsh
fi