mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge 3f2266cff9 into 291e96dcd0
This commit is contained in:
commit
d1bea541a3
1 changed files with 2 additions and 3 deletions
|
|
@ -38,12 +38,11 @@ done
|
||||||
is_plugin() {
|
is_plugin() {
|
||||||
local base_dir=$1
|
local base_dir=$1
|
||||||
local name=$2
|
local name=$2
|
||||||
test -f $base_dir/plugins/$name/$name.plugin.zsh \
|
[[ -f $base_dir/plugins/$name/$name.plugin.zsh ]] || [[ -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
|
||||||
if is_plugin $ZSH_CUSTOM $plugin; then
|
if is_plugin $ZSH_CUSTOM $plugin; then
|
||||||
fpath=($ZSH_CUSTOM/plugins/$plugin $fpath)
|
fpath=($ZSH_CUSTOM/plugins/$plugin $fpath)
|
||||||
elif is_plugin $ZSH $plugin; then
|
elif is_plugin $ZSH $plugin; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue