1、Linux命令补全
1.安装补全yum包
yum -y install bash-completion
2.source使其生效
source /usr/share/bash-completion/bash_completion
2、k8s命令补全
yum -y install bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
来源:oschina
链接:https://my.oschina.net/u/4323802/blog/4449084