Commit fa903b650f4142103e374ffe827b54b633b13742
1 parent
960ce85936
Exists in
master
and in
2 other branches
IMP tools/install.sh
Showing 1 changed file with 5 additions and 3 deletions Side-by-side Diff
tools/install.sh
... | ... | @@ -10,8 +10,10 @@ fi |
10 | 10 | |
11 | 11 | echo "\033[0;34mCloning Zsh Config...\033[0m" |
12 | 12 | hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || { |
13 | - echo "git not installed" | |
14 | - exit | |
13 | + echo "can't clone repo.. trying to pull" | |
14 | + hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || { | |
15 | + echo "can't pull, either.. giving up.." | |
16 | + } | |
15 | 17 | } |
16 | 18 | |
17 | 19 | echo "\033[0;34mLooking for an existing zsh config...\033[0m" |
... | ... | @@ -21,7 +23,7 @@ if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then |
21 | 23 | fi |
22 | 24 | |
23 | 25 | echo "\033[0;34mUsing the Zsh Config template file and adding it to ~/.zshrc\033[0m" |
24 | -ln -s $ZCNF/templates/zshrc ~/.zshrc | |
26 | +cp $ZCNF/templates/zshrc ~/.zshrc | |
25 | 27 | ln -s $ZCNF/templates/bash_aliases ~/.bash_aliases |
26 | 28 | sed -i -e "/^export ZSH=/ c\\ |
27 | 29 | export ZSH=$ZSH |