From 342e324e60d602d60313744ff3ac6ae074b02329 Mon Sep 17 00:00:00 2001 From: Scott Sanders Date: Sat, 17 Dec 2011 18:04:59 -0500 Subject: [PATCH] Allow loading themes from $ZSH_CUSTOM/themes/ --- oh-my-zsh.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 7ae41c33e..54b3bc04c 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -59,7 +59,11 @@ then else if [ ! "$ZSH_THEME" = "" ] then - source "$ZSH/themes/$ZSH_THEME.zsh-theme" + if [ -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 fi fi