Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature-request: Add sub-command to output completion scripts #320

Open
jonaskello opened this issue Sep 4, 2021 · 2 comments
Open

Feature-request: Add sub-command to output completion scripts #320

jonaskello opened this issue Sep 4, 2021 · 2 comments

Comments

@jonaskello
Copy link

Most other commands I want completion for has a sub-command to output the completion script. For example kubectl has this so all I need to add in my .zshrc is this:

source <(kubectl completion zsh)

I cannot find this kind of command for kubectx, instead I need a lot of manual steps to set this up and it also becomes hard to setup when using shared dotfiles across machines as it requires copying the completion scripts and making symlinks etc.

@ahmetb
Copy link
Owner

ahmetb commented Sep 7, 2021

@jonaskello ideally the package manager you are using to install kubectx should be installing the completion script (it does for Homebrew, for example).

Maybe with Go implementation we can embed such completion files to a hidden subcmd like you described as well, so I'll keep this as a feature request.

@anton-ryzhov
Copy link

Duplicate of #250 ?

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

No branches or pull requests

3 participants