Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到有些程序有自己的制表符补全。
例如,git:
git checkout
允许分支名称的制表符完成。
这是如何实现的?
使用compgenand complete(关于自定义 bash 完成的文章)。
compgen
complete