From 5aa48c49e82060f5e9b1fa586e302513303e68e8 Mon Sep 17 00:00:00 2001 From: Shannon -jj Behrens Date: Fri, 24 Jun 2022 20:18:26 -0700 Subject: [PATCH] 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. --- content/en/docs/reference/kubectl/cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 3f96fd6e4c..693c66d1fb 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -37,7 +37,7 @@ complete -o default -F __start_kubectl k ```bash source <(kubectl completion zsh) # setup autocomplete in zsh into the current shell -echo "[[ $commands[kubectl] ]] && source <(kubectl completion zsh)" >> ~/.zshrc # add autocomplete permanently to your zsh shell +echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc # add autocomplete permanently to your zsh shell ``` ### A Note on --all-namespaces