Created
August 10, 2012 00:51
-
-
Save akiradeveloper/3309738 to your computer and use it in GitHub Desktop.
inadequate exit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zshpath=`which zsh` | |
if [ $? -ne 0 ] | |
then | |
exit | |
fi | |
if [ $SHELL = $zshpath ] | |
then | |
exit | |
fi | |
echo "activate zsh ..." | |
SHELL=$zshpath | |
export SHELL | |
exec $zshpath --login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment