Ant build target autocompletion in bash

Another simple one:

  • Look up ant’s location: which ant
  • you should find a file there named complete-ant-cmd.pl or the like.
  • add this to your .bashrc (one line):
    complete -C <path to antbin dir>/complete-ant-cmd.pl ant

Leave a Reply

Your email address will not be published. Required fields are marked *