Created
September 2, 2015 14:51
-
-
Save hoop33/e02d8ae9113616e2cd60 to your computer and use it in GitHub Desktop.
Making "java -v", "java --version", and "java version" work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function java() { | |
case $* in | |
-v) | |
;& | |
version) | |
;& | |
--version) shift 1; command java -version ;; | |
*) command java "$@" ;; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment