Here is a shortcut for starting apps from the console in OS X.
- Create a shell script named “o”, as in a lowercase letter ‘o’.
- Chmod 755.
- Put it in your path.
- Put this in it:
#!/bin/sh open /Applications/$1*
So then you can start Emacs with the command o Aq
instead of open /Applications/Aquamacs Emacs.app/
and Firefox with o Fire
rather than open /Applications/Firefox.app/
.
Or alternatively just: open -a my_app
You need to type the full name of the app (with or without .app suffix), but at least it’s case insensitive.