diff options
author | Jake Bell <jake@theunraveler.com> | 2011-05-26 12:34:37 -0500 |
---|---|---|
committer | Jake Bell <jake@theunraveler.com> | 2011-05-26 12:34:37 -0500 |
commit | f8aae64e478066be7d05f5eb6970c356cafcfd36 (patch) | |
tree | 814d6c33f87872f58881ec366b8cbb5d9b2633f6 /oh-my-zsh.sh | |
parent | ab2a7b51a8c3ead55a272fba58232d0823e519a2 (diff) | |
download | zsh-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.sh | 4 |
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 |