浏览代码

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

Marius Ghita 13 年之前
父节点
当前提交
527355eae3
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      oh-my-zsh.sh

+ 4 - 1
oh-my-zsh.sh

@@ -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 [ ! "$ZSH_THEME" = ""  ]
+  then
+    source "$ZSH/themes/$ZSH_THEME.zsh-theme"
+  fi
 fi