Browse Source

Changed to use which.

Arthur Kalmenson 13 years ago
parent
commit
1354eb1248
1 changed files with 1 additions and 6 deletions
  1. 1 6
      tools/install.sh

+ 1 - 6
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 '  ____  / /_     ____ ___  __  __   ____  _____/ /_ '