Auto-detect shell script based on header #$


#1

Hi,
Is there a way to make Atom auto-detect my script as shell script when it starts as:

#$ -S /bin/bash

Thanks for your help.

Best,

Deniz


#2

Is there any reason whyyou don’t use the standard shebang for shell scripts (#!/bin/bash)? I’m asking, because if they did, you could simply use this package:


#3

Thanks for answering. The reason is that “#$” is part of the sun grid engine (SGE) header which is then followed by shell scripting. When I reopen my scripts they always set back to “plain” text, which compromises readability.