From 9137d543b5421065727f58e3828e7a68ba7de437 Mon Sep 17 00:00:00 2001 From: Jelly Robot Date: Wed, 15 Apr 2015 22:25:28 +0200 Subject: [PATCH] update chsh command call /etc/shells may not point to /usr/bin/zsh (which is the result when using 'which zsh') using chsh -l and choosing zsh from there will guarantee chsh to work without failure. Ref #3779 --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index bd4c55749..8d69c0283 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -34,7 +34,7 @@ export PATH=\"$PATH\" if [ "$SHELL" != "$(which zsh)" ]; then echo "\033[0;34mTime to change your default shell to zsh!\033[0m" - chsh -s `which zsh` + chsh -s $(chsh -l | grep "zsh" -m 1) fi echo "\033[0;32m"' __ __ '"\033[0m"