From 01d48a874941c3396d30f6750bc442f437f38028 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Mon, 28 Nov 2011 09:53:08 -0500 Subject: [PATCH] Move my theming functions into lib/ --- lib/theming.zsh | 9 +++++++++ oh-my-zsh.sh | 10 ---------- 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 lib/theming.zsh 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]" -}