步骤
在文件 ~/.bashrc 中导入(source)补全脚本:
$ echo 'source <(kubectl completion bash)' >>~/.bashrc
生效配置:
$ source ~/.bashrc
参考
Linux 系统中的 bash 自动补全功能 | Kubernetes
在文件 ~/.bashrc 中导入(source)补全脚本:
$ echo 'source <(kubectl completion bash)' >>~/.bashrc
生效配置:
$ source ~/.bashrc
Linux 系统中的 bash 自动补全功能 | Kubernetes
相关文章: