kubectl 命令自动补全

kubectl 命令自动补全

linux:

# yum install -y bash-completion
# locate bash_completion
/usr/share/bash-completion/bash_completion
# source /usr/share/bash-completion/bash_completion
# source <(kubectl completion bash)


macos:

$ brew install bash-completion
$ source $(brew --prefix)/etc/bash_completion
$ source <(kubectl completion bash)
posted @ 2019-09-21 16:57  kindnull  阅读(823)  评论(0编辑  收藏  举报