Merge remote-tracking branch 'origin/theming'

Merging in the refactored theming since we no longer rely on ZSH_THEME variable anymore

Conflicts:
	oh-my-zsh.zsh
	templates/zshrc.arch-zsh-template
	templates/zshrc.zsh-template
This commit is contained in:
Simon Gomizelj 2011-12-02 08:24:08 -05:00
commit f838ca5e1f
4 changed files with 45 additions and 19 deletions

11
lib/theming.zsh Normal file
View file

@ -0,0 +1,11 @@
set_theme() {
source "$ZSH/themes/$1.zsh-theme"
}
random_theme() {
local themes
themes=($ZSH/themes/*zsh-theme)
source "$themes[$RANDOM%$#themes+1]"
}
# compdef "_files -g '*.zsh'" set_theme