Skip to content
Snippets Groups Projects
Unverified Commit 37d481d4 authored by Tom Payne's avatar Tom Payne Committed by GitHub
Browse files

fix: Don't complete _command on zsh (#1690)


Previously the generated zsh completion script started with the line

    #compdef _<command> <command>

where <command> is the command that the zsh completion script is
generated for.

This enabled completions for both <command> and _<command>, but
_<command> is the completion function itself and should not be
completed. Furthermore, attempting to autocomplete _<command> (e.g.
typing "_<command><Space><Tab>" in a zsh shell) causes zsh to hang.

This commit fixes the #compdef line to only complete <command>, not
_<command>.

Co-authored-by: default avatarArvid Norlander <VorpalBlade@users.noreply.github.com>
parent 5b11656e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment