diff options
author | Alex <xzeroknightx@gmail.com> | 2013-01-30 00:44:42 -0500 |
---|---|---|
committer | Alex <xzeroknightx@gmail.com> | 2013-01-30 00:44:42 -0500 |
commit | 8a463b6df7048c8507f95344c3dc5d7a1355c48d (patch) | |
tree | 5a5c57dcf666dfaae86b4f874b780e25c4d462a8 | |
parent | 615e41b0ecdb25acba513fd09619bd56c2eb24eb (diff) | |
download | zsh-8a463b6df7048c8507f95344c3dc5d7a1355c48d.tar.gz zsh-8a463b6df7048c8507f95344c3dc5d7a1355c48d.tar.bz2 zsh-8a463b6df7048c8507f95344c3dc5d7a1355c48d.zip |
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
-rw-r--r-- | oh-my-zsh.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 689a79fef..2e1d3b477 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -73,6 +73,9 @@ else if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ] then source "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" + elif [ -f "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme" ] + then + source "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme" else source "$ZSH/themes/$ZSH_THEME.zsh-theme" fi |