Add zsh-theme command (with completetion) to switch between themes.

This commit is contained in:
andynu 2011-05-16 00:10:13 -07:00
commit 6774669bcd

View file

@ -50,3 +50,12 @@ function extract() {
fi fi
} }
zsh-theme(){
echo $ZSH/themes/$1
source $ZSH/themes/$1
typeset -ga chpwd_functions
typeset -ga precmd_functions
precmd_functions=''
chpwd_functions=''
}
compctl -k "(`\ls $ZSH/themes`)" zsh-theme