In default installation of macOS, Python and Bash are installed in
/bin directories respectively.
$ which python /usr/bin/python $ which bash /bin/bash
So it's appropriate files can be opened using the command-line as:
Along similar lines, I want the ability to open an HTML file with Google Chrome using the command-line as:
$ chrome foo.html
But I get the following output:
bash: chrome: command not found
An alternate way to achieve the desired workflow is make Google Chrome as the default browser and execute the following command:
How do I achieve the former workflow?