Configure the choosen grammar for files


#1

I have a special file ext .bats which is really a Shell Script. I cannot figure out how to make Atom automatically choose the Shell Script grammar for .bats file. I see grammar-selector in the config.cson, but don’t know how to configure it to do what I want.


#2

There is an Issue open on this here:


#3

While I wait for the fix, I created a grammar based off of shell: https://atom.io/packages/language-bats