Skip to content

[feature] Shell completion #4

Description

@Freed-Wu

For zsh, the following script can work:

#compdef interactively

_arguments -s -S \
  "(- : *)"{-h,--help}"[Show list of command-line options]" \
  "--name[Show list of command-line options]: :{_command_names -e}" \
  '(-)1: :{_command_names -e}' \
  '*:: :_normal'

However, it needs #3.

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions