This is not a pure GNU/Linux question, but I'm not finding an answer online.
I'm using Firefox. When I select a file with an *.sh extension, FF prompts me what to do with the file. There is no option to simply open in the browser as a text file. I posted the same question at the Mozilla forums and received only one response --- to install an extension.
I'm thinking there should be a way to modify FF at the configuration level to treat *.sh files as text/plain. Is there a way to configure FF to treat files with the *.sh extension (shell scripts) as a text file and open directly in FF?
FWIW, files with no extension are treated as text files. I'm guessing FF programmatically keys off the extension to open the prompt box rather than just display the file.
K-Meleon (Windows) has this same issue. Opera provides a straightforward way to treat *.sh files as text/plain. FF provides no straightforward way to modify mimetypes.
Thanks.