Browse code

Changed to use which.

Arthur Kalmenson authored on 19/04/2011 at 02:51:28
Showing 1 changed files
... ...
@@ -22,12 +22,7 @@ echo "Copying your current PATH and adding it to the end of ~/.zshrc for you."
22 22
 echo "export PATH=$PATH" >> ~/.zshrc
23 23
 
24 24
 echo "Time to change your default shell to zsh!"
25
-if [ -f /bin/zsh ]
26
-then
27
-  chsh -s /bin/zsh
28
-else
29
-  chsh -s "/usr/bin/env zsh"
30
-fi
25
+chsh -s `which zsh`
31 26
 
32 27
 echo '         __                                     __  '
33 28
 echo '  ____  / /_     ____ ___  __  __   ____  _____/ /_ '