Merge pull request #38302 from shortcuts/main

add version support to `fish` auto-completion
pull/38510/head
Kubernetes Prow Robot 2022-12-16 04:26:17 -08:00 committed by GitHub
commit da490859b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ description: "Optional configuration to enable fish shell auto-completion."
headless: true
---
{{< 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: