phronmophobic / membrane.term

A terminal emulator in pure clojure
Eclipse Public License 1.0
53 stars 1 forks source link

It is probably misleading to give play scripts an .sh extension #37

Open lread opened 2 years ago

lread commented 2 years ago

Play scripts are not shell scripts. We might be misleading users by using .sh as a filename extension for these files in our examples.

I'm thinking .txt might be a better filename extension?
We are playing text to the terminal.

phronmophobic commented 2 years ago

Yea, I agree. On the one hand, we could just execute the script as like a shell script using something like -c, but that would break use cases like opening a repl and typing into it. I can't think of a better extension than .txt and it does seem more appropriate than .sh. I guess the one downside is that you lose syntax highlighting in your editor if it's a .txt file.

lread commented 2 years ago

Yeah, true. The README could show play examples as .txt but include a sentence on why and mention syntax highlighting.