mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
Don't try running chsh if user already runs zsh
This commit is contained in:
@@ -32,8 +32,10 @@ sed -i -e "/export PATH=/ c\\
|
|||||||
export PATH=\"$PATH\"
|
export PATH=\"$PATH\"
|
||||||
" ~/.zshrc
|
" ~/.zshrc
|
||||||
|
|
||||||
|
if [ "$SHELL" != "$(which zsh)" ]; then
|
||||||
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
|
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
|
||||||
chsh -s `which zsh`
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user