It's probably safe to say that most Mac users do not open GUI apps via the CLI, which is why most GUI apps do not include the CLI support like TextMate does. In other words, TextMate actually includes a binary executable named
mate which is installed in
$PATH, which is why one does not need to preface it with the
open command like opening a GUI app which does not include that type of CLI support.
If you want to emulate that behavior then create a script named
chrome placed in the
/usr/local/bin/ for something such as this.
if [ -n "$1" ]; then
open -a "Google Chrome" "$1"
open -a "Google Chrome"
Save the above code in a plain text file named
chrome and make it executable by:
chmod +x chrome
Then you can start Google Chrome via CLI by
chrome URL where
URL is properly formatted if not just a filename in the