summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
authorJake Bell <jake@theunraveler.com>2011-05-26 12:34:37 -0500
committerJake Bell <jake@theunraveler.com>2011-05-26 12:34:37 -0500
commitf8aae64e478066be7d05f5eb6970c356cafcfd36 (patch)
tree814d6c33f87872f58881ec366b8cbb5d9b2633f6 /oh-my-zsh.sh
parentab2a7b51a8c3ead55a272fba58232d0823e519a2 (diff)
downloadzsh-f8aae64e478066be7d05f5eb6970c356cafcfd36.tar.gz
zsh-f8aae64e478066be7d05f5eb6970c356cafcfd36.tar.bz2
zsh-f8aae64e478066be7d05f5eb6970c356cafcfd36.zip
Adding ability to override plugins from the custom directory.
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r--oh-my-zsh.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index c8f1a33b8..dbff1ced9 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -17,7 +17,9 @@ compinit -i
# Load all of the plugins that were defined in ~/.zshrc
for plugin ($plugins); do
- if [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
+ if [ -f $ZSH/custom/plugins/$plugin/$plugin.plugin.zsh ]; then
+ source $ZSH/custom/plugins/$plugin/$plugin.plugin.zsh
+ elif [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
source $ZSH/plugins/$plugin/$plugin.plugin.zsh
fi
done