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