Load plugins before custom config

This allows the custom config to override or change the config set by
the plugins.
This commit is contained in:
Wesley Moore 2010-06-22 11:05:08 +10:00
commit ea0da158aa

View file

@ -7,13 +7,13 @@ fpath=($ZSH/functions $fpath)
# TIP: Add files you don't want in git to .gitignore # TIP: Add files you don't want in git to .gitignore
for config_file ($ZSH/lib/*.zsh) source $config_file 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 # Load all of the plugins that were defined in ~/.zshrc
plugin=${plugin:=()} plugin=${plugin:=()}
for plugin ($plugins) source $ZSH/plugins/$plugin.plugin.zsh 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... # Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" = "true" ] if [ "$DISABLE_AUTO_UPDATE" = "true" ]
then then
@ -22,4 +22,4 @@ else
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
fi fi
unset config_file unset config_file