Bash completion for path in argument (with equals sign present)

前端 未结 3 1315
醉酒成梦
醉酒成梦 2021-01-05 05:53

I used to be able to type the following:

$> ./foo --arg=

Where foo is any program I wrote, and it would give me a list of files in the current dir

3条回答
  •  旧巷少年郎
    2021-01-05 06:36

    I resolved the same trouble with Ubuntu 12.04 by using https://github.com/ai/rake-completion. You need to

    1. download the file wget -O ~/scripts/rake https://raw.githubusercontent.com/ai/rake-completion/master/rake
    2. add to your .bashrc: . ~/scripts/rake

    or You can use one of other ways on that page.

提交回复
热议问题