1e2152fcf3103c3acbae49caa0f6184b55c7bb17
- Author
- Arthur Kalmenson <arthur.kalm@gmail.com>
- Committer
- Arthur Kalmenson <arthur.kalm@gmail.com>
- Date
Message
Make the chsh more reliable.
Diff
1diff --git a/tools/install.sh b/tools/install.sh
2index 6e3872bb9ef24466ff32e67013128a61eae13679..2d5fde4c88b4843687f99f846c97ab8fc7cfc914 100755
3--- a/tools/install.sh
4+++ b/tools/install.sh
5@@ -22,7 +22,12 @@ echo "Copying your current PATH and adding it to the end of ~/.zshrc for you."
6 echo "export PATH=$PATH" >> ~/.zshrc
7
8 echo "Time to change your default shell to zsh!"
9-chsh -s "/usr/bin/env zsh"
10+if [ -f /bin/zsh ]
11+then
12+ chsh -s /bin/zsh
13+else
14+ chsh -s "/usr/bin/env zsh"
15+fi
16
17 echo ' __ __ '
18 echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '