浏览代码

First search in the custom folder for the theme

fceccon 13 年之前
父节点
当前提交
2ca2ad3fc5
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      oh-my-zsh.sh

+ 6 - 1
oh-my-zsh.sh

@@ -45,7 +45,12 @@ then
 else
 else
   if [ ! "$ZSH_THEME" = ""  ]
   if [ ! "$ZSH_THEME" = ""  ]
   then
   then
-    source "$ZSH/themes/$ZSH_THEME.zsh-theme"
+    if [ -f "$ZSH/custom/$ZSH_THEME.zsh-theme" ]
+    then
+      source "$ZSH/custom/$ZSH_THEME.zsh-theme"
+    else
+      source "$ZSH/themes/$ZSH_THEME.zsh-theme"
+    fi
   fi
   fi
 fi
 fi