diff options
author | Avi ד <avi.the.coder@gmail.com> | 2019-03-22 14:37:08 -0400 |
---|---|---|
committer | Marc CornellĂ <marc.cornella@live.com> | 2019-03-22 19:37:08 +0100 |
commit | 1e11a3c112f47ee87f432a5410755239ff43b0bb (patch) | |
tree | e803c54d5f917fe3a1c4cbe2d756c16e5e1ba0df /oh-my-zsh.sh | |
parent | 8aa8405ea25f768a9bfb9a54d9a0dc05efb4efad (diff) | |
download | zsh-1e11a3c112f47ee87f432a5410755239ff43b0bb.tar.gz zsh-1e11a3c112f47ee87f432a5410755239ff43b0bb.tar.bz2 zsh-1e11a3c112f47ee87f432a5410755239ff43b0bb.zip |
init: fix erroneous plugin not found warning (#7686)
Co-authored-by: Se De <Sede7473@gmail.com>
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r-- | oh-my-zsh.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index fbb10dd82..e080257c1 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -44,6 +44,7 @@ is_plugin() { test -f $base_dir/plugins/$name/$name.plugin.zsh \ || test -f $base_dir/plugins/$name/_$name } + # Add all defined plugins to fpath. This must be done # before running compinit. for plugin ($plugins); do @@ -51,6 +52,8 @@ for plugin ($plugins); do fpath=($ZSH_CUSTOM/plugins/$plugin $fpath) elif is_plugin $ZSH $plugin; then fpath=($ZSH/plugins/$plugin $fpath) + else + echo "Warning: plugin $plugin not found" fi done @@ -83,8 +86,6 @@ for plugin ($plugins); do source $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh elif [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then source $ZSH/plugins/$plugin/$plugin.plugin.zsh - else - echo "Warning: plugin $plugin not found" fi done |