📜  kubectl 完成 zsh - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:59.085000             🧑  作者: Mango

代码示例2
echo 'source <(kubectl completion zsh)' >>~/.zshrc

# If you want to enable it with an alias
echo 'alias k=kubectl' >>~/.zshrc
echo 'complete -F __start_kubectl k' >>~/.zshrc