1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

Merge pull request #3049 from strycore/master

Prevent chsh from running when $SHELL is already zsh
This commit is contained in:
Robby Russell 2014-08-31 11:42:40 -07:00
commit c1cd9cb126

View file

@ -32,8 +32,10 @@ sed -i -e "/export PATH=/ c\\
export PATH=\"$PATH\" export PATH=\"$PATH\"
" ~/.zshrc " ~/.zshrc
echo "\033[0;34mTime to change your default shell to zsh!\033[0m" if [ "$SHELL" != "$(which zsh)" ]; then
chsh -s `which zsh` echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
chsh -s `which zsh`
fi
echo "\033[0;32m"' __ __ '"\033[0m" echo "\033[0;32m"' __ __ '"\033[0m"
echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m" echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"