From ea0da158aa419b8b73528515f6baa703e1ca6b0e Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Tue, 22 Jun 2010 11:05:08 +1000 Subject: [PATCH] Load plugins before custom config This allows the custom config to override or change the config set by the plugins. --- oh-my-zsh.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index bb45c71eb..a74f4bff6 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -7,13 +7,13 @@ fpath=($ZSH/functions $fpath) # TIP: Add files you don't want in git to .gitignore for config_file ($ZSH/lib/*.zsh) source $config_file -# Load all of your custom configurations from custom/ -for config_file ($ZSH/custom/*.zsh) source $config_file - # Load all of the plugins that were defined in ~/.zshrc plugin=${plugin:=()} for plugin ($plugins) source $ZSH/plugins/$plugin.plugin.zsh +# Load all of your custom configurations from custom/ +for config_file ($ZSH/custom/*.zsh) source $config_file + # Check for updates on initial load... if [ "$DISABLE_AUTO_UPDATE" = "true" ] then @@ -22,4 +22,4 @@ else /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh fi -unset config_file \ No newline at end of file +unset config_file