k8s-kubectl命令自动补全 – 记忆角落

k8s-kubectl命令自动补全

/ 0评 / 0

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

brew install bash-completion

source $(brew --prefix)/etc/bash_completion

source <(kubectl completion bash)

发表评论

您的电子邮箱地址不会被公开。