如何启用bash命令行开关的制表完成?

如何启用bash命令行开关的制表完成?

问题描述:

使用庆典,我可以完成与TAB的命令。通常情况下,它也应完成命令行开关:例如当我输入:

With bash, I can complete a command with TAB. Normally, it should also complete the command line switches: e.g. when I typed:

java -

就应该给我准备。它不是。我怎样才能让这个preVIEW?

it should show me the possibilities. It does not. How can I enable this preview?

另请参阅惊喜!在shell提示命令行开关