Opening a file in chrome from terminal

Using chrome from the terminal is not like how I thought.

chrome ./index.html

Opening a local index.html file like this from the terminal will make chrome go to http://./index.html

Instead you should do like this (on Windows):

explorer index.html
start index.html

This would work if the .html extension was set to open with chrome by default.

If you want to open a file without setting chrome as default for any extension, you can do this

chrome `pwd`"./index.html"