diff --git a/tools/install.sh b/tools/install.sh index 8ca427d2c..8f78c69ab 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -5,7 +5,7 @@ then fi echo "\033[0;34mCloning Oh My Zsh...\033[0m" -which git > /dev/null +command -v git &>/dev/null if [[ $? -eq 0 ]]; then /usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh else @@ -28,7 +28,7 @@ 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` +chsh -s `command -v zsh` echo "\033[0;32m"' __ __ '"\033[0m" echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"