... | ... |
@@ -22,7 +22,12 @@ 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 |
-chsh -s "/usr/bin/env zsh" |
|
25 |
+if [ -f /bin/zsh ] |
|
26 |
+then |
|
27 |
+ chsh -s /bin/zsh |
|
28 |
+else |
|
29 |
+ chsh -s "/usr/bin/env zsh" |
|
30 |
+fi |
|
26 | 31 |
|
27 | 32 |
echo ' __ __ ' |
28 | 33 |
echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ ' |