Kubectl 命令补齐工具
kubectl 命令补齐工具
centos 下安装
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
mac
在 oh-my-zsh/plugins 插件目录下看下有没有kubectl 插件
vim ~/.zshrc
plugins=(
git
zsh-autosuggestions
kubectl
docker
golang
)