Skip to content

Instantly share code, notes, and snippets.

@akiradeveloper
Created August 10, 2012 00:51
Show Gist options
  • Save akiradeveloper/3309738 to your computer and use it in GitHub Desktop.
Save akiradeveloper/3309738 to your computer and use it in GitHub Desktop.
inadequate exit
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