1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-21 21:30:09 +00:00

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

This commit is contained in:
Marc Cornellà 2021-11-09 12:03:59 +01:00
parent 3dc66bd367
commit 9a11b34101
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -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