Hemanth's Scribes

web

Auto Completion in Bash for Maven

Author Photo

Hemanth HM

Thumbnail

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
Author Photo

About Hemanth HM

Hemanth HM is a Sr. Machine Learning Manager at PayPal, Google Developer Expert, TC39 delegate, FOSS advocate, and community leader with a passion for programming, AI, and open-source contributions.