kubernetes kubectl 命令自动补全

yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
posted @ 2020-05-28 09:06  哈喽哈喽111111  阅读(388)  评论(0编辑  收藏  举报