From ec39822e3d1946db02b9d843dd25d74cde4768d8 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Sun, 23 Oct 2011 19:05:35 -0500 Subject: [PATCH] Refactor --- zsh/oh-my-zsh.zsh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zsh/oh-my-zsh.zsh b/zsh/oh-my-zsh.zsh index 9f9a728..5c4fa32 100644 --- a/zsh/oh-my-zsh.zsh +++ b/zsh/oh-my-zsh.zsh @@ -2,10 +2,9 @@ export ZSH=$DOT_FILES/zsh/lib/oh-my-zsh export ZSH_THEME="risto" plugins=(rails git ruby osx brew) -if [ -d "$ZSH" ]; then - source $ZSH/oh-my-zsh.sh -else +if ! [ -d "$ZSH" ]; then echo "Cloning Oh My Zsh..." /usr/bin/env git clone git://github.com/robbyrussell/oh-my-zsh.git "$ZSH" - source $ZSH/oh-my-zsh.sh fi + +source $ZSH/oh-my-zsh.sh