ohmyzsh/lib/theming.zsh
Simon Gomizelj f838ca5e1f 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
2011-12-02 08:24:08 -05:00

11 lines
201 B
Bash

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