[zh] Update Bash alias auto-completion

pull/34325/head
Martin Tovmassian 2022-06-16 12:22:31 +02:00
parent c55941f924
commit 63938e4cbe
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 >}}

View File

@ -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
```
<!--