mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Adding ability to override plugins from the custom directory.
This commit is contained in:
parent
541da0c9d1
commit
d3bf47d540
3 changed files with 11 additions and 2 deletions
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue