Skip to content

Should :click shell completions be enabled for Bash? #20188

@StenAL

Description

@StenAL

Verification

Provide a detailed description of the proposed feature

Click is a library for generating tab-completions for CLI tools and it's one of the supported ways of generating shell completions in the Formula API.

Most formulae in homebrew-core only generate Click completions for Zsh and Fish (Code search) and some have an extra comment saying Click does not support bash version older than 4.4 (source), however others like otterdog generate Bash completions as well. Considering the default version of Bash on macOS is 3.2.57, I'm not sure whether it's desirable to generate completions for it by default.

What's the general guidance on generating :click completions for Bash? If it's desirable I'd be happy to open a PR in homebrew-core and add Bash completions to all the formulae that don't have it enabled yet.

What is the motivation for the feature?

Shell suggestions working for more users.

How will the feature be relevant to at least 90% of Homebrew users?

A lot of users like me use Bash as the default shell and are missing out on shell completions at the moment.

What alternatives to the feature have been considered?

Not enabling the shell suggestions like the current status quo.

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