Have you ever wanted to open an HTML file in Chrome, directly from the OSX terminal? I have. Here’s how to do it:
- Open
~/.bash_profilein your editor of choice. - Append this to the bottom of your
~/.bash_profile:
1 2 3 | |
- Save and close the file.
- Run
source ~/.bash_profilefrom the terminal to reload it. - Enjoy being able to type things like
chrome index.htmlfrom the terminal.