I have a slight pet peeve when I try to compile and run my java programs in the terminal
javac example.java
When I want to run java example
and use autocomplete on the java
command, it automatically includes the period (java example.
). Of course, this is standard behavior as it matches the longest prefix, but is there a way to cut off the trailing period here? I wouldn't mind editing certain configuration files and I believe I saw other computers slicing off the period. It would be especially nice if this functionality is exclusive to the terminal command java
.