527355eae3c8b019ce203c38b6aa5ffd818c3640

Author
Marius Ghita <mhitza@gmail.com>
Committer
Marius Ghita <mhitza@gmail.com>
Date

Message

When the theme choice is left out, oh-my-zsh will not try to load it

Diff

 1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
 2index d72d90cf932e5dbf03aca6c2ce2400a8fba97422..c4522491bc083f1cade6207432a4f4e62c6d009c 100644
 3--- a/oh-my-zsh.sh
 4+++ b/oh-my-zsh.sh
 5@@ -43,6 +43,9 @@ then
 6   source "$RANDOM_THEME"
 7   echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
 8 else
 9-  source "$ZSH/themes/$ZSH_THEME.zsh-theme"
10+  if [ ! "$ZSH_THEME" = ""  ]
11+  then
12+    source "$ZSH/themes/$ZSH_THEME.zsh-theme"
13+  fi
14 fi
15