bash completion of makefile target

前端 未结 6 1996
小蘑菇
小蘑菇 2021-01-31 01:59

Suppose I have a simple makefile like:

hello:
   echo \"hello world\"

bye:
   echo \"bye bye\"

Then in bash I want something like:

6条回答
  •  别那么骄傲
    2021-01-31 02:39

    In Ubuntu 10.04, source the following file:

    . /etc/bash_completion
    

    or uncomment it in

    /etc/bash.bashrc
    

提交回复
热议问题