设置 docker & kubectl 命令行自动完成 (bas
- 安装 bash-completion
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
- 测试安装是否成功
- 设置 docker completion
sudo curl -L https://raw.githubusercontent.com/docker/compose/1.24.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
- 设置 kubectl completion
echo 'source <(kubectl completion bash)' >>~/.bashrc
kubectl completion bash >/etc/bash_completion.d/kubectl
source ~/.bashrc
本文标题:设置 docker & kubectl 命令行自动完成 (bas
本文链接:https://www.haomeiwen.com/subject/fojxqctx.html
网友评论