Open file from CMD line as a known file type when file has no extension - This seems like it would be a common issue, but I found known previously questioned.
Q: I would like to be able to open a file from the command line (I know how to do this, works great) … but as a GIVEN file type. For example a shell script or json file EVEN THOUGH the filename does not have the appropriate extension.
atom myfile.sh # this already works, opens as a SHELL type atom myfile.json # this already works, opens as a JSON type, etc
$ atom myfile.foo -type SHELL # I’m looking for something like this