-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
clusterctl: Support autocompletion for the fish shell #10723
Comments
@guettli : feel free to assign to yourself and go ahead. |
this was done here via this patch #9950 I am using clusterctl 1.7.2 version and the completion is there. (missing in 1.6 series as it was not cherry-picked) You can use fish completion using To have completion for every shell environment, you'll have to save it on your if command -v clusterctl &> /dev/null
clusterctl completion fish | source
end |
I created a patch in homebrew repo to have completion enabled by default for fish shell as well when you use |
@kranurag7 thank you very much. After install
issue is solved. I use that in my config.fish:
This way, the autocomplete gets installed automatically (if provided by the application installed via brew). |
Nice! Thx @kranurag7 |
What would you like to be added (User Story)?
As an operator, if would like to have shell autocompletion for
clusterctl
because this is convenient.Detailed Description
In bash (configured via docs about completion)
clusterctl get kubeTABTAB
will autocomplete toclusterctl get kubeconfig
.It would be nice to have this for the
fish
shell, too.According to the source
fish
is already suported. But I guess it is not provided via homebrew.Here my fish completions:
Anything else you would like to add?
I can have a look at this, too, and create a PR. Just tell me.
Label(s) to be applied
/kind feature
/area clusterctl
The text was updated successfully, but these errors were encountered: