Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
1e11a3c1
Commit
1e11a3c1
authored
Mar 22, 2019
by
Avi ד
Committed by
Marc Cornellà
Mar 22, 2019
Browse files
init: fix erroneous plugin not found warning (#7686)
Co-authored-by:
Se De
<
Sede7473@gmail.com
>
parent
8aa8405e
Changes
1
Hide whitespace changes
Inline
Side-by-side
oh-my-zsh.sh
View file @
1e11a3c1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment