Browse code

Merge pull request #618 from fceccon/custom-theme

Use a custom version of a theme if the user has it

Robby Russell authored on 26/12/2011 at 18:23:53
Showing 1 changed files
... ...
@@ -59,7 +59,12 @@ then
59 59
 else
60 60
   if [ ! "$ZSH_THEME" = ""  ]
61 61
   then
62
-    source "$ZSH/themes/$ZSH_THEME.zsh-theme"
62
+    if [ -f "$ZSH/custom/$ZSH_THEME.zsh-theme" ]
63
+    then
64
+      source "$ZSH/custom/$ZSH_THEME.zsh-theme"
65
+    else
66
+      source "$ZSH/themes/$ZSH_THEME.zsh-theme"
67
+    fi
63 68
   fi
64 69
 fi
65 70