mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-03 16:33:47 +02:00
Adding ability to override plugins from the custom directory.
This commit is contained in:
1 parent
ab2a7b51a8
commit
f8aae64e47
4 files changed
+10
-3
No files matched your search
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user