安装
yum install -y bash-completion
生效
source /usr/share/bash-completion/bash_completion
设置
source <(kubectl completion bash)
变量
echo "source <(kubectl completion bash)" >> ~/.bashrc
安装
yum install -y bash-completion
生效
source /usr/share/bash-completion/bash_completion
设置
source <(kubectl completion bash)
变量
echo "source <(kubectl completion bash)" >> ~/.bashrc