Move my theming functions into lib/

This commit is contained in:
Simon Gomizelj 2011-11-28 09:53:08 -05:00
commit 01d48a8749
2 changed files with 9 additions and 10 deletions

9
lib/theming.zsh Normal file
View file

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

View file

@ -39,13 +39,3 @@ done
# Load all of your custom configurations from custom/ # Load all of your custom configurations from custom/
for config_file ($ZSH_CUSTOM/*.zsh) source $config_file for config_file ($ZSH_CUSTOM/*.zsh) source $config_file
set_theme() {
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
}
random_theme() {
local themes
themes=($ZSH/themes/*zsh-theme)
source "$themes[$RANDOM%$#themes+1]"
}