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

parent 3dc66bd3
...@@ -446,9 +446,9 @@ function _omz::plugin::load { ...@@ -446,9 +446,9 @@ function _omz::plugin::load {
fi fi
# Check if it has completion to reload compinit # Check if it has completion to reload compinit
if [[ -f "$base/_$plugin" ]]; then local -a comp_files
has_completion=1 comp_files=($base/_*(N))
fi has_completion=$(( $#comp_files > 0 ))
# Load the plugin # Load the plugin
if [[ -f "$base/$plugin.plugin.zsh" ]]; then if [[ -f "$base/$plugin.plugin.zsh" ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment