Use hash instead of which in install script

See - http://stackoverflow.com/a/677212/1403956
This commit is contained in:
staticsafe 2012-06-16 15:12:23 -04:00
commit d81a06e9f9

View file

@ -5,7 +5,7 @@ then
fi
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
which git > /dev/null
hash git &>/dev/null
if [[ $? -eq 0 ]]; then
/usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
else