Skip to content

[feature] support customization of zsh's compdef? #87

Description

@Freed-Wu

First line of zsh completion script must be compdef program_name. zsh support compdef -P a_glob_expr, such as compdef pip-cache -P pip[0-9.]# will let this completion script support pip-cache, pip, pip3, pip3.9, etc.

A new feature

    shtab.add_argument_to(parser, compdef="XXXX")

Result:

#compdef XXX

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions