mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
fixed spacing error on plugins names and paths
This commit is contained in:
parent
aa15ebad3e
commit
3f2266cff9
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