Auto completion in Bash for Maven

Step 1 : Check if bash_completion in enabled in your .bashrc.
Step 2 : Add the file attached to /etc/bash_completion.d/m2.
Step 3 : Enjoy auto-completion for Maven.

The Code Lines :
complete -F _m2_complete -o filenames mvn Indicates to apply _m2_complete for command following mvn
compgenGenerate possible completion matches for word according to the options.

Share/Save
AttachmentSize
m2.670 bytes

0 comments on Auto completion in Bash for Maven

    Post new comment

    The content of this field is kept private and will not be shown publicly.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
    • Lines and paragraphs break automatically.

    More information about formatting options


Drupal SEO