chore(kubectl): Formatting markdown (#17697)
Amending the formatting of the MD as ```shell was showing up in plain text. Zsh options: "https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion"
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
9f8d00f37e
commit
3398b6f69d
@@ -447,10 +447,10 @@ source <(kubectl completion zsh)
|
||||
|
||||
If you have an alias for kubectl, you can extend shell completion to work with that alias:
|
||||
|
||||
```shell
|
||||
echo 'alias k=kubectl' >>~/.zshrc
|
||||
echo 'complete -F __start_kubectl k' >>~/.zshrc
|
||||
```
|
||||
```shell
|
||||
echo 'alias k=kubectl' >>~/.zshrc
|
||||
echo 'complete -F __start_kubectl k' >>~/.zshrc
|
||||
```
|
||||
|
||||
After reloading your shell, kubectl autocompletion should be working.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user