ohmyzsh/lib/theming.zsh
Simon Gomizelj 8b5d590249 Merge branch 'master' into theming
Conflicts:
	templates/zshrc.arch-zsh-template
	templates/zshrc.zsh-template
2011-11-28 14:00:26 -05:00

11 lines
199 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