I have an HTML file on my local machine:
echo '<h1>Hello Chromium</h1>' > test
If I open it using chromium test, it does not render the page, but shows the source code. The same file being named test.html and opened with chromium test.html, opens in chromium and is rendered.
How can I force Chromium to render local files without an HTML extension in their filename?
NB: the context is that I'd like to open HTML documents from mutt, which are stored in /tmp without the .html extension.
-mimetype text/htmlor something similar I couldn't find while googling. – nyi Sep 02 '18 at 12:42