1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 19:48:00 +00:00

Make the chsh more reliable.

This commit is contained in:
Arthur Kalmenson 2011-04-18 07:48:35 -04:00
parent 68335ebbe9
commit 15f3b09cbf

View File

@ -22,7 +22,12 @@ echo "Copying your current PATH and adding it to the end of ~/.zshrc for you."
echo "export PATH=$PATH" >> ~/.zshrc
echo "Time to change your default shell to zsh!"
chsh -s "/usr/bin/env zsh"
if [ -f /bin/zsh ]
then
chsh -s /bin/zsh
else
chsh -s "/usr/bin/env zsh"
fi
echo ' __ __ '
echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '