summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArthur Kalmenson <arthur.kalm@gmail.com>2011-04-18 07:48:35 -0400
committerArthur Kalmenson <arthur.kalm@gmail.com>2011-04-18 07:48:35 -0400
commit1e2152fcf3103c3acbae49caa0f6184b55c7bb17 (patch)
treeb582eff1dc63742b457e44b80acaaeaae6ee5aa0 /tools
parent971b071dc67f423d8b2a6f476e1dd58819049f41 (diff)
downloadzsh-1e2152fcf3103c3acbae49caa0f6184b55c7bb17.tar.gz
zsh-1e2152fcf3103c3acbae49caa0f6184b55c7bb17.tar.bz2
zsh-1e2152fcf3103c3acbae49caa0f6184b55c7bb17.zip
Make the chsh more reliable.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/install.sh b/tools/install.sh
index 6e3872bb9..2d5fde4c8 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -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 ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '