Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support shell completion for plugins #4699

@jdevera

Description

@jdevera

Is your feature request related to a problem? Please describe.

I added a plugin, by having an executable in my PATH named chezmoi-foo, and I can run it with chezmoi foo but foo does not show as one of the completion options for chezmoi in bash.

Describe the solution you'd like

I'd like chezmoi to include plugin names (only names, no expectation for their parameters) in its completion candidates.

Describe alternatives you've considered

The only consideration has been creating some form of completion wrapper, but it seems overkill.

Additional context

Docs say:

chezmoi supports plugins, similar to git.

That statement partially strengthened my expectation because git provides this completion for plugins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions