k8s之kubectl命令自动补全
k8s 命令自动补全yum install -y epel-release bash-completionsource /usr/share/bash-completion/bash_completionsource <(kubectl completion bash)echo "source <(kubectl completion bash)" >> ~/.b...
·
k8s 命令自动补全
yum install -y epel-release bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
或者
yum install -y epel-release bash-completion
cp /usr/share/bash-completion/completions/docker /etc/bash_completion.d/
systemctl enable --now docker
在mac上
brew install bash-completion
source $(brew --prefix)/etc/bash_completion
source <(kubectl completion bash)
转载于:https://blog.51cto.com/11288550/2378268
更多推荐
已为社区贡献466条内容
所有评论(0)