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_profile
in your editor of choice. - Append this to the bottom of your
~/.bash_profile
:
1 2 3 |
|
- Save and close the file.
- Run
source ~/.bash_profile
from the terminal to reload it. - Enjoy being able to type things like
chrome index.html
from the terminal.