Browse code

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

Marius Ghita authored on 14/06/2011 at 22:17:22
Showing 1 changed files
... ...
@@ -43,6 +43,9 @@ then
43 43
   source "$RANDOM_THEME"
44 44
   echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
45 45
 else
46
-  source "$ZSH/themes/$ZSH_THEME.zsh-theme"
46
+  if [ ! "$ZSH_THEME" = ""  ]
47
+  then
48
+    source "$ZSH/themes/$ZSH_THEME.zsh-theme"
49
+  fi
47 50
 fi
48 51