How to enable tab-completion of command line switches in bash?

前端 未结 5 581
庸人自扰
庸人自扰 2021-02-04 08:39

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

java -
5条回答
  •  臣服心动
    2021-02-04 09:10

    If you want to create your own custom completions you can look at this post: https://stackoverflow.com/a/21476506/2649637

提交回复
热议问题