From 1ec4a83bf1779379f0f353888978e3c8f696ae53 Mon Sep 17 00:00:00 2001 From: Will Leinweber Date: Sun, 29 May 2011 18:12:14 -0700 Subject: [PATCH] correctly add custom/plugin plugins to fpath --- oh-my-zsh.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index dbff1ced9..dd6b8cf67 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -9,7 +9,13 @@ for config_file ($ZSH/lib/*.zsh) source $config_file # Add all defined plugins to fpath plugin=${plugin:=()} -for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath) +for plugin ($plugins); do + if [ -d $ZSH/custom/plugins/$plugin/ ]; then + fpath=($ZSH/custom/plugins/$plugin $fpath) + elif [ -d $ZSH/plugins/$plugin/ ]; then + fpath=($ZSH/plugins/$plugin $fpath) + fi +done # Load and run compinit autoload -U compinit