Added check for zsh installation (@TomDiddle commit:f80b2727)

This commit is contained in:
Sean Jones 2012-12-05 16:45:54 +00:00
commit d83c6116f5

View file

@ -1,3 +1,11 @@
which zsh>/dev/null
RES=$?
if [ $RES -ne 0 ]
then
echo "\033[0;33mYou do not have zsh installed.\033[0m You'll need to install zsh first if you want to install oh-my-zsh"
exit
fi
if [ -d ~/.oh-my-zsh ] if [ -d ~/.oh-my-zsh ]
then 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" 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"