From cf5be77c2e7d2b89dacb0f3cef28344efae57951 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Fri, 2 Dec 2011 12:49:33 -0500 Subject: [PATCH] Load themes from ~/.omz/themes/ too --- lib/theming.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/theming.zsh b/lib/theming.zsh index 96d93cef2..b5921fcfd 100644 --- a/lib/theming.zsh +++ b/lib/theming.zsh @@ -1,10 +1,13 @@ set_theme() { - source "$ZSH/themes/$1.zsh-theme" + local theme + + theme=({$OMZ,$ZSH}/themes/$1-theme(N)) + source $theme[1] } random_theme() { local themes - themes=($ZSH/themes/*zsh-theme) + themes=($ZSH/themes/*zsh-theme(N)) source "$themes[$RANDOM%$#themes+1]" }