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

file-typesublimetextsublimetext2sublimetext3

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.

Best Answer

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.