Load themes from ~/.omz/themes/ too

This commit is contained in:
Simon Gomizelj 2011-12-02 12:49:33 -05:00
commit cf5be77c2e

View file

@ -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]"
}