8a463b6df7048c8507f95344c3dc5d7a1355c48d
Author Alex <xzeroknightx@gmail.com> Committer Alex <xzeroknightx@gmail.com> Date 2013-01-30 05:44 UTC
Message Better custom theme loading
oh-my-zsh.sh now also checks for $ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme when attempting to load a theme. This way custom themes can be a bit more organized in the 'custom' dir
Diff 1 diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
2 index 689a79feffe989472c5b4aa76117a746f4e696c8..2e1d3b47730af53e2f7d26e6bac550ba0270cb6a 100644
3 --- a/oh-my-zsh.sh
4 +++ b/oh-my-zsh.sh
5 @@ -73,6 +73,9 @@ else
6 if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ]
7 then
8 source "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme"
9 + elif [ -f "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme" ]
10 + then
11 + source "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme"
12 else
13 source "$ZSH/themes/$ZSH_THEME.zsh-theme"
14 fi