Hemanth's Scribes

web

Auto Completion in Bash for Maven

Author Photo

Hemanth HM

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 compgen Generate possible completion matches for word according to the options.

#javascript#linux