正常安装了k8s后,使用kubect 工具后接的命令不能直接tab补全
命令补全方法:
yum -y install bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
标签:completion,补全,source,命令,k8s,bash From: https://www.cnblogs.com/cf211/p/17850168.html