浏览代码

Merge pull request #618 from fceccon/custom-theme

Use a custom version of a theme if the user has it
Robby Russell 13 年之前
父节点
当前提交
8bc60824f6
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      oh-my-zsh.sh

+ 6 - 1
oh-my-zsh.sh

@@ -59,7 +59,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