summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArthur Kalmenson <arthur.kalm@gmail.com>2011-04-18 22:51:28 -0400
committerArthur Kalmenson <arthur.kalm@gmail.com>2011-04-18 22:51:28 -0400
commit1354eb124893df9c8f60f668550efcafb94eb05f (patch)
tree671979db969ad67f2f6370ee4d00af874ae222ad /tools
parent5f415c465a576a78d7e1577e472309fdd4c7621f (diff)
downloadzsh-1354eb124893df9c8f60f668550efcafb94eb05f.tar.gz
zsh-1354eb124893df9c8f60f668550efcafb94eb05f.tar.bz2
zsh-1354eb124893df9c8f60f668550efcafb94eb05f.zip
Changed to use which.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/install.sh b/tools/install.sh
index 1b8c80f21..8ed1403af 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -22,12 +22,7 @@ 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!"
-if [ -f /bin/zsh ]
-then
- chsh -s /bin/zsh
-else
- chsh -s "/usr/bin/env zsh"
-fi
+chsh -s `which zsh`
echo ' __ __ '
echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '