How do I set sublime text to auto detect a file type after setting it once?

Trenton picture Trenton · Dec 13, 2014 · Viewed 10.8k times · Source

for instance I have a .zsh file that I would like to always open in sublime as a "Shell Script (bash)" file type. Currently it defaults back to a text file format even when I change and reopen it.

Answer

jwpfox picture jwpfox · Dec 13, 2014

Screen shot

Look in the bottom right of the window.

Click the file type name. Let's assume it is 'Shell Script (Bash)'.

Notice that the first option is 'Open all with current extension as...'

Follow the obvious steps from there and you should be all set.