docker、kubernetes命令自动补全
1、yum install bash-completion
2、退出当前终端后重新登录:
type _init_completion
3、演示:
[root@localhost ~]#yum install bash-completion
#重新打开一个shell窗口或退出当前登录界面重新登录后输入
[root@localhost ~]#type _init_completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo “source <(kubectl completion bash)” >> ~/.bashrc