Allow (re)installing from local repo

This commit is contained in:
Andrew Vit 2011-11-09 16:58:45 -08:00
commit ebe3f9b204

View file

@ -5,15 +5,12 @@ then
ZSH=~/.oh-my-zsh ZSH=~/.oh-my-zsh
fi fi
if [ -d $ZSH ] if [ ! -d $ZSH ]
then then
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove $ZSH if you want to install" echo "\033[0;34mCloning Oh My Zsh...\033[0m"
exit /usr/bin/env git clone https://github.com/avit/oh-my-zsh.git $ZSH
fi fi
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
/usr/bin/env git clone https://github.com/avit/oh-my-zsh.git $ZSH
echo "\033[0;34mLooking for an existing zsh config...\033[0m" echo "\033[0;34mLooking for an existing zsh config...\033[0m"
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ] if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
then then