Skip to content

Commit 99928d6

Browse files
Added kubectl completion command for fish shell in kubect cheatsheet docmentation
Signed-off-by: utkarsh-singh1 <[email protected]>
1 parent 7827c19 commit 99928d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc
4242

4343
### FISH
4444

45+
Require kubectl version 1.23 or more.
46+
4547
```bash
46-
kubectl completion fish | source # add it to your fish configuration file to setup autocomplete in your fish shell
48+
echo 'kubectl completion fish | source' >> ~/.config/fish/config.fish # add autocomplete permanently to your fish shell
4749
```
4850

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

0 commit comments

Comments
 (0)