diff --git a/tools/install.sh b/tools/install.sh index 6fa75f6..e64419b 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -5,13 +5,13 @@ if [ ! -n "$ZCNF" ]; then fi if [ ! -n "$ZSH" ]; then - ZSH=~/.config/zsh-config/tools/oh-my-zsh + ZSH=$ZCNF/tools/oh-my-zsh fi echo "\033[0;34mCloning Zsh Config...\033[0m" hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || { echo "can't clone repo.. trying to pull" - hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || { + hash git >/dev/null 2>&1 && env git pull --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || { echo "can't pull, either.. giving up.." } } @@ -50,5 +50,3 @@ echo "\n\n \033[0;32mp.s. Follow us at http://twitter.com/ohmyzsh.\033[0m" echo "\n\n \033[0;32mp.p.s. Get stickers and t-shirts at http://shop.planetargon.com.\033[0m" env zsh . ~/.zshrc - -