Skip to content

Commit 7827c19

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ complete -o default -F __start_kubectl k
3939
source <(kubectl completion zsh) # set up autocomplete in zsh into the current shell
4040
echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc # add autocomplete permanently to your zsh shell
4141
```
42+
43+
### FISH
44+
45+
```bash
46+
kubectl completion fish | source # add it to your fish configuration file to setup autocomplete in your fish shell
47+
```
48+
4249
### A note on `--all-namespaces`
4350

4451
Appending `--all-namespaces` happens frequently enough that you should be aware of the shorthand for `--all-namespaces`:

0 commit comments

Comments
 (0)