Open and edit Bash files instead of running them

已回答

Not really sure how it happened, but mostly not how I can undo it. Whenever I open a bash file from the file explorer pane (double click the file name), it runs it instead of letting me edit it. I tried associating a file extension, but my file has no file extension, it only has a `#/bin/bash` line at the top. I tried adding that one to shell files under *Editor > File types*, but it won't add it (presumably because "bin/bash" is already used somewhere else? but I can't find it).

Help appreciated! I now have to edit my bash files using Sublime, which I don't mind, but it would be nice to be able to edit them in the IDE (Goland) directly.

0

>  I open a bash file from the file explorer pane 

Do you mean Windows file explorer or IDE's one? May you show a screencast? 

0

Sorry, I meant the IDE's one.

When I open "install_librdkafka" it just opens a terminal and starts intalling Kafka, while actually I just want to edit the file, which starts with

`#!/bin/bash`

I think actually may have set something weird for that file in specific, because install_go_swagger starts with the same and is just opened correctly for editing.

Well, typing this I found the culprit. See screenshot above. Removing it from there actually fixed it. 

0

请先登录再写评论。