diff --git a/tools/install.sh b/tools/install.sh index 596b6cc..17ba439 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -10,8 +10,10 @@ 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 "git not installed" - exit + 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 || { + echo "can't pull, either.. giving up.." + } } echo "\033[0;34mLooking for an existing zsh config...\033[0m" @@ -21,7 +23,7 @@ if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then fi echo "\033[0;34mUsing the Zsh Config template file and adding it to ~/.zshrc\033[0m" -ln -s $ZCNF/templates/zshrc ~/.zshrc +cp $ZCNF/templates/zshrc ~/.zshrc ln -s $ZCNF/templates/bash_aliases ~/.bash_aliases sed -i -e "/^export ZSH=/ c\\ export ZSH=$ZSH