Skip to content

Open scripts without file extension

Albert Tregnaghi edited this page Dec 15, 2017 · 2 revisions

Often bash files have not an ending like ".sh" - e.g. gradlew is a bash script but has no file ending.

Inisde eclipse users must always do Open with -> select editor -> Bash editor which is very inconvenient.

For those files Bash editor inspects first line containing a shebang for bash . If so a special entry in context menu for this files in Navigator, Package explorer and Project explorer appears:

image

Clone this wiki locally