Skip to content

Commit 5aa48c4

Browse files
authored
Fixed a zsh bug
Using double quotes causes the code to be evaluated too early and ends up not working if you don't have kubectl installed.
1 parent a9b7331 commit 5aa48c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ complete -o default -F __start_kubectl k
3737

3838
```bash
3939
source <(kubectl completion zsh) # setup autocomplete in zsh into the current shell
40-
echo "[[ $commands[kubectl] ]] && source <(kubectl completion zsh)" >> ~/.zshrc # add autocomplete permanently to your zsh shell
40+
echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc # add autocomplete permanently to your zsh shell
4141
```
4242
### A Note on --all-namespaces
4343

0 commit comments

Comments
 (0)