fix(cli): fix check for completion files in `omz plugin load`

master
Marc Cornellà 5 years ago
parent 3dc66bd367
commit 9a11b34101
No known key found for this signature in database
GPG Key ID: 314585E776A9C1B
  1. 6
      lib/cli.zsh

@ -446,9 +446,9 @@ function _omz::plugin::load {
fi
# Check if it has completion to reload compinit
if [[ -f "$base/_$plugin" ]]; then
has_completion=1
fi
local -a comp_files
comp_files=($base/_*(N))
has_completion=$(( $#comp_files > 0 ))
# Load the plugin
if [[ -f "$base/$plugin.plugin.zsh" ]]; then

Loading…
Cancel
Save