From a28dbc83937cbe624ec726199b4bbe7b65b2b2a0 Mon Sep 17 00:00:00 2001 From: Matthew Hager Date: Sat, 21 Feb 2015 12:33:38 -0600 Subject: [PATCH] Move custon *.zsh file sourcing up so that they can load plugins and other things that come after. --- oh-my-zsh.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index bc7a8e496..71716f77f 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -29,6 +29,11 @@ for config_file ($ZSH/lib/*.zsh); do source $config_file done +# Load all of your custom configurations from custom/ +for config_file ($ZSH_CUSTOM/*.zsh(N)); do + source $config_file +done +unset config_file is_plugin() { local base_dir=$1 @@ -72,12 +77,6 @@ for plugin ($plugins); do fi done -# Load all of your custom configurations from custom/ -for config_file ($ZSH_CUSTOM/*.zsh(N)); do - source $config_file -done -unset config_file - # Load the theme if [ "$ZSH_THEME" = "random" ]; then themes=($ZSH/themes/*zsh-theme)