Skip to content

Commit aa6e7d8

Browse files
committed
Update cheatsheet.md - fish completions
put fish completion config in its own conventional place I almost dumped the completions out directly but then I realized this updates regularly as kubectl updates and adds new functionality.
1 parent cdf5f37 commit aa6e7d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/en/docs/reference/kubectl/quick-reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc
4545

4646
### FISH
4747

48-
Require kubectl version 1.23 or above.
48+
{{< note >}}
49+
Requires kubectl version 1.23 or above.
50+
{{< /note >}}
4951

5052
```bash
51-
echo 'kubectl completion fish | source' >> ~/.config/fish/config.fish # add kubectl autocompletion permanently to your fish shell
53+
echo 'kubectl completion fish | source' > ~/.config/fish/completions/kubectl.fish && source ~/.config/fish/completions/kubectl.fish
5254
```
5355

5456
### A note on `--all-namespaces`

0 commit comments

Comments
 (0)