安装bash-completion
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
配置kubectl命令补全功能
临时配置
source <(kubectl completion bash)
永久生效配置
echo "source <(kubectl completion bash)" >> $HOME/.bashrc
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> $HOME/.bashrc
本文标题:kubeactl命令补全
本文链接:https://www.haomeiwen.com/subject/ehpkpqtx.html
网友评论