From 48550eb912c6bf791a2d4943b1c214ccf596efe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Tue, 6 Dec 2022 11:56:04 +0100 Subject: [PATCH] add version support to `fish` auto-completion --- .../tasks/tools/included/optional-kubectl-configs-fish.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/docs/tasks/tools/included/optional-kubectl-configs-fish.md b/content/en/docs/tasks/tools/included/optional-kubectl-configs-fish.md index a64d0e184c2..64663f0ed1d 100644 --- a/content/en/docs/tasks/tools/included/optional-kubectl-configs-fish.md +++ b/content/en/docs/tasks/tools/included/optional-kubectl-configs-fish.md @@ -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: