add support for per-theme subfolder

This will allow it to git-clone third-party themes into $ZSH_CUSTOM/themes/$ZSH_THEME and therefore make it somewhat easier to maintain
This commit is contained in:
Philipp B 2018-03-29 11:35:20 +02:00 committed by GitHub
parent 0cec462621
commit 2e4bc1cfa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,8 @@ else
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"
elif [ -f "$ZSH_CUSTOM/themes/$ZSH_THEME/$ZSH_THEME.zsh-theme" ]; then
source "$ZSH_CUSTOM/themes/$ZSH_THEME/$ZSH_THEME.zsh-theme"
else
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
fi