From 2f7674adc3e258aedfa61ec2df2693f0d0920b1e Mon Sep 17 00:00:00 2001 From: Mulia Arifandi Nasution Date: Thu, 8 Oct 2015 07:14:06 +0700 Subject: [PATCH] Also check custom themes in `$ZSH_CUSTOM/themes` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to [Overriding and adding themes][1] documentation, the location of custom themes should be on `$ZSH_CUSTOM/themes` ``` zsh_custom └── themes └── my_awesome_theme.zsh-theme ``` [1]: https://github.com/robbyrussell/oh-my-zsh/wiki/Customization#overriding-and-adding-themes --- plugins/themes/themes.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/themes/themes.plugin.zsh b/plugins/themes/themes.plugin.zsh index 7519b025..18a64934 100644 --- a/plugins/themes/themes.plugin.zsh +++ b/plugins/themes/themes.plugin.zsh @@ -11,6 +11,9 @@ function theme if [ -f "$ZSH_CUSTOM/$1.zsh-theme" ] then source "$ZSH_CUSTOM/$1.zsh-theme" + elif [ -f "$ZSH_CUSTOM/themes/$1.zsh-theme" ] + then + source "$ZSH_CUSTOM/themes/$1.zsh-theme" else source "$ZSH/themes/$1.zsh-theme" fi