1 2 3 4 5 6 7
#compdef run-help local d expl local HELPDIR=${HELPDIR:-/opt/homebrew/Cellar/zsh/5.9/share/zsh/help} [[ -d $HELPDIR ]] && { d=($HELPDIR/*(:t)) (($#d)) && d+=('.' ':') && _wanted commands expl 'command' compadd -a d } || _man