Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
1e11a3c1
Commit
1e11a3c1
authored
Mar 22, 2019
by
Avi ד
Committed by
Marc Cornellà
Mar 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
oh-my-zsh.sh
oh-my-zsh.sh
+3
-2
No files found.
oh-my-zsh.sh
View file @
1e11a3c1
...
@@ -44,6 +44,7 @@ is_plugin() {
...
@@ -44,6 +44,7 @@ is_plugin() {
test
-f
$base_dir
/plugins/
$name
/
$name
.plugin.zsh
\
test
-f
$base_dir
/plugins/
$name
/
$name
.plugin.zsh
\
||
test
-f
$base_dir
/plugins/
$name
/_
$name
||
test
-f
$base_dir
/plugins/
$name
/_
$name
}
}
# Add all defined plugins to fpath. This must be done
# Add all defined plugins to fpath. This must be done
# before running compinit.
# before running compinit.
for
plugin
(
$plugins
)
;
do
for
plugin
(
$plugins
)
;
do
...
@@ -51,6 +52,8 @@ for plugin ($plugins); do
...
@@ -51,6 +52,8 @@ for plugin ($plugins); do
fpath
=(
$ZSH_CUSTOM
/plugins/
$plugin
$fpath
)
fpath
=(
$ZSH_CUSTOM
/plugins/
$plugin
$fpath
)
elif
is_plugin
$ZSH
$plugin
;
then
elif
is_plugin
$ZSH
$plugin
;
then
fpath
=(
$ZSH
/plugins/
$plugin
$fpath
)
fpath
=(
$ZSH
/plugins/
$plugin
$fpath
)
else
echo
"Warning: plugin
$plugin
not found"
fi
fi
done
done
...
@@ -83,8 +86,6 @@ for plugin ($plugins); do
...
@@ -83,8 +86,6 @@ for plugin ($plugins); do
source
$ZSH_CUSTOM
/plugins/
$plugin
/
$plugin
.plugin.zsh
source
$ZSH_CUSTOM
/plugins/
$plugin
/
$plugin
.plugin.zsh
elif
[
-f
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
]
;
then
elif
[
-f
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
]
;
then
source
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
source
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
else
echo
"Warning: plugin
$plugin
not found"
fi
fi
done
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