Use the following commands to add the kubectl autocomplete to zsh:
mkdir -p ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/
kubectl completion zsh > ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/kubectl-autocomplete.plugin.zsh| // https://time.geekbang.org/column/article/126504 | |
| // 张大爷在胡同口等着 ... | |
| // 碰见一个李大爷:127.0.0.1:59668 | |
| // 耗时: 40.354851ms | |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/binary" |