From 5135ebf3a73fe5e6e231f0cf570662db842a8cfb Mon Sep 17 00:00:00 2001 From: Burnfaker Date: Sat, 6 Apr 2013 22:19:30 +0300 Subject: [PATCH] Fix time to tape password && Check shell Fix problems with typing password to set zsh shell Check if zsh != (if zsh not set as standard shell) else set zsh as standard shell --- tools/install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 41f83e354..c9890c758 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -1,3 +1,5 @@ +#!/bin/sh + if [ -d ~/.oh-my-zsh ] then echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove ~/.oh-my-zsh if you want to install" @@ -24,7 +26,10 @@ echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc f echo "export PATH=$PATH" >> ~/.zshrc echo "\033[0;34mTime to change your default shell to zsh!\033[0m" -chsh -s `which zsh` + +if [ "$SHELL" != "/bin/zsh" ]; then + chsh -s `which zsh`; +else echo "\033[0;32m"' __ __ '"\033[0m" echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"