Merge pull request #34325 from mtovmassian/fix-zh-bash-alias-auto-completion

[zh] Update Bash alias auto-completion
This commit is contained in:
Kubernetes Prow Robot
2022-06-16 17:34:31 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
@@ -56,7 +56,7 @@ echo "source <(kubectl completion bash)" >> ~/.bashrc # 在您的 bash shell 中
```bash
alias k=kubectl
complete -F __start_kubectl k
complete -o default -F __start_kubectl k
```
### ZSH
@@ -86,7 +86,7 @@ If you have an alias for kubectl, you can extend shell completion to work with t
```bash
echo 'alias k=kubectl' >>~/.bashrc
echo 'complete -F __start_kubectl k' >>~/.bashrc
echo 'complete -o default -F __start_kubectl k' >>~/.bashrc
```
{{< note >}}
@@ -148,7 +148,7 @@ You now have to ensure that the kubectl completion script gets sourced in all yo
```bash
echo 'alias k=kubectl' >>~/.bash_profile
echo 'complete -F __start_kubectl k' >>~/.bash_profile
echo 'complete -o default -F __start_kubectl k' >>~/.bash_profile
```
<!--