fix no such file or directory message when ZSH_THEME isn't set.

This commit is contained in:
okertanov 2011-06-05 18:00:22 +03:00
commit 6b2865c7f6

View file

@ -43,6 +43,9 @@ then
source "$RANDOM_THEME"
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
else
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
if [ ! -z "$ZSH_THEME" ]
then
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
fi
fi