Update kubectl_completion.md

Quote shell commands to improve format
This commit is contained in:
samiam
2017-02-13 11:18:16 -05:00
committed by Andrew Chen
parent 6ceec5095e
commit 4a1f2c2b55
@@ -11,17 +11,19 @@ Output shell completion code for the given shell (bash or zsh).
This command prints shell code which must be evaluation to provide interactive completion of kubectl commands. This command prints shell code which must be evaluation to provide interactive completion of kubectl commands.
$ source <(kubectl completion bash) `$ source <(kubectl completion bash)`
will load the kubectl completion code for bash. Note that this depends on the bash-completion framework. It must be sourced before sourcing the kubectl completion, e.g. on the Mac: will load the kubectl completion code for bash. Note that this depends on the bash-completion framework. It must be sourced before sourcing the kubectl completion, e.g. on the Mac:
```
$ brew install bash-completion $ brew install bash-completion
$ source $(brew --prefix)/etc/bash_completion $ source $(brew --prefix)/etc/bash_completion
$ source <(kubectl completion bash) $ source <(kubectl completion bash)
```
If you use zsh [1], the following will load kubectl zsh completion: If you use zsh [1], the following will load kubectl zsh completion:
$ source <(kubectl completion zsh) `$ source <(kubectl completion zsh)`
[1] zsh completions are only supported in versions of zsh >= 5.2 [1] zsh completions are only supported in versions of zsh >= 5.2