mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
correctly add custom/plugin plugins to fpath
This commit is contained in:
parent
142c03dbd2
commit
1ec4a83bf1
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue