From 8d66ebef014dc9df0bcf88bcf52170c1512116de Mon Sep 17 00:00:00 2001 From: staticsafe Date: Mon, 9 Apr 2012 09:45:18 -0400 Subject: [PATCH] using exec all the time now --- envsetup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index 34b236f..3f5365c 100755 --- a/envsetup.sh +++ b/envsetup.sh @@ -51,9 +51,11 @@ installpackages() { changeshell() { if [[ $SHELL == "/usr/bin/zsh" || $SHELL == "/bin/zsh" ]]; then printf '%s\n' "Your default shell is already zsh, continuing." + exec zsh else chsh -s $(which zsh) printf '%s\n' "Default shell changed to zsh, logout and login to see changes" + exec zsh fi } @@ -89,7 +91,3 @@ installpackages changeshell getdotfiles -# To make zsh work properly in FreeBSD -if [[ "$userdistro" == "FreeBSD" ]]; then - exec zsh -fi