From 304ea1468a08c9c10cceb1502b4db0718cd88887 Mon Sep 17 00:00:00 2001 From: Dane O'Connor Date: Tue, 17 Jan 2012 20:51:41 -0500 Subject: [PATCH] make 'random' theme read custom and local folders as well --- oh-my-zsh.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index f25aab835..e62f31520 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -69,6 +69,8 @@ for config_file ($ZSH_LOCAL/*.zsh) source $config_file if [ "$ZSH_THEME" = "random" ] then themes=($ZSH/themes/*zsh-theme) + themes+=($ZSH_CUSTOM/*zsh-theme) + themes+=($ZSH_LOCAL/*zsh-theme) N=${#themes[@]} ((N=(RANDOM%N)+1)) RANDOM_THEME=${themes[$N]}