Browse Source

First search in the custom folder for the theme

fceccon 12 years ago
parent
commit
2ca2ad3fc5
1 changed files with 6 additions and 1 deletions
  1. 6 1
      oh-my-zsh.sh

+ 6 - 1
oh-my-zsh.sh

@@ -45,7 +45,12 @@ then
 else
   if [ ! "$ZSH_THEME" = ""  ]
   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