fish auto-completion
Kubernetes Docs · نسخهٔ f284a9e7c87f · CC BY 4.0 برای مستندات و مجوزهای همراه
{{< note >}} Autocomplete for Fish requires kubectl 1.23 or later. {{< /note >}}
The kubectl completion script for Fish can be generated with the command kubectl completion fish. Sourcing the completion script in your shell enables kubectl autocompletion.
To do so in all your shell sessions, add the following line to your ~/.config/fish/config.fish file:
shell
kubectl completion fish | sourceAfter reloading your shell, kubectl autocompletion should be working.