diff options
author | Peter Tillemans <pti@snamellit.com> | 2012-06-26 11:13:45 +0200 |
---|---|---|
committer | Peter Tillemans <pti@snamellit.com> | 2012-06-26 11:13:45 +0200 |
commit | cc98254b62658a988dd8cee0d5e1cb4172b6a064 (patch) | |
tree | 866278c55e2e22eb7ef4f48c5ba3787898b38bd1 /tools | |
parent | 8b69c7f6a0c80c1c53505e17d356387b83e18efc (diff) | |
parent | d165a84dc0e8d2eb0774ed26995e7046c0aff41f (diff) | |
download | zsh-cc98254b62658a988dd8cee0d5e1cb4172b6a064.tar.gz zsh-cc98254b62658a988dd8cee0d5e1cb4172b6a064.tar.bz2 zsh-cc98254b62658a988dd8cee0d5e1cb4172b6a064.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/install.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/install.sh b/tools/install.sh index 8ca427d2c..b080be3a1 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -5,13 +5,10 @@ then fi echo "\033[0;34mCloning Oh My Zsh...\033[0m" -which git > /dev/null -if [[ $? -eq 0 ]]; then - /usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh -else +hash git >/dev/null && /usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh || { echo "git not installed" exit -fi +} echo "\033[0;34mLooking for an existing zsh config...\033[0m" if [ -f ~/.zshrc ] || [ -h ~/.zshrc ] |