bash-completion
bash-completion copied to clipboard
Enable .java Filename Completion for java Command
Description
Enhance the bash completion scripts for the java
command to complete filenames with the .java
extension.
This enhancement is necessary to support:
- JEP 330: Launch Single-File Source-Code Programs
- JEP 458: Launch Multi-File Source-Code Programs
which allows the java launcher to run a program supplied as a single file of Java source code:
java HelloWorld.java