Adding ability to override plugins from the custom directory.

This commit is contained in:
Jake Bell 2010-10-01 16:01:04 -05:00
commit d3bf47d540
3 changed files with 11 additions and 2 deletions

View file

@ -12,7 +12,13 @@ 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.plugin.zsh
for plugin ($plugins)
# First check in the custom/ directory.
if [ -d $ZSH/custom/plugins/$plugin ]; then
source $ZSH/custom/plugins/$plugin/$plugin.plugin.zsh;
else
source $ZSH/plugins/$plugin/$plugin.plugin.zsh;
fi
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" = "true" ]