summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-12-26 10:23:53 -0800
committerRobby Russell <robby@planetargon.com>2011-12-26 10:23:53 -0800
commit8bc60824f6f5ff9451fef9a240607a32109c0bbb (patch)
tree413c4d477e04290f1076fc856f9bcd87b21cfffd /oh-my-zsh.sh
parent480d1247b89ae089564eb0ca7d66aef989b9f5e5 (diff)
parent2ca2ad3fc5b8635b22d33fd0f1c1511f44e9fff8 (diff)
downloadzsh-8bc60824f6f5ff9451fef9a240607a32109c0bbb.tar.gz
zsh-8bc60824f6f5ff9451fef9a240607a32109c0bbb.tar.bz2
zsh-8bc60824f6f5ff9451fef9a240607a32109c0bbb.zip
Merge pull request #618 from fceccon/custom-theme
Use a custom version of a theme if the user has it
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r--oh-my-zsh.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index 7ae41c33e..aeeaa3daf 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -59,7 +59,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