diff --git a/lib/theming.zsh b/lib/theming.zsh new file mode 100644 index 000000000..cd88d08af --- /dev/null +++ b/lib/theming.zsh @@ -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]" +} diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 460399fc4..d0c77e457 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -39,13 +39,3 @@ done # Load all of your custom configurations from custom/ 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]" -}