bash-completion
- bash下的自动补全工具
-
命令行输入git后按TAB
Pasted image 20220506150053.png
openstack的命令补全
- 以cinder举例
cinder bash_completion
- 可以获取cinder下的补全命令
Pasted image 20220506150629.png
将补全信息加入到bash-completion中
complete -W "$(cinder bash-completion)" cinder
- 现在cinder <TAB> 就会有自动补全信息