I want to open programs in Terminal by writing a single command, like what is already done for Java complilation:
javac HelloWorld.java
For any program I install, that functionality isn't available. For example, to open SWI-Prolog I have to type
/opt/local/bin/swipl
when I want to type just
swipl
which results in a -bash: swipl: command not found
. How do I create this new command?