This is a cross platform aliasing similar to bash and is written in node.
sudo npm install -g shortencmd
To setup an alias run sudo scmd -a "COMMAND -> ALIAS"
then to use the alias simply run scmd COMMAND
scmd -a "javac -> j"
then scmd j HelloWord.java