1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-10-23 04:53:45 +08:00

fix(cli): keep completion flag when loading multiple plugins (#14032)

This commit is contained in:
Maksym Tymoshyk
2026-08-30 20:11:30 +03:00
committed by GitHub
parent 44ce832bbd
commit b5d75fc565

View File

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