I've found several similar requests, but not really what I'm looking to find. I want to write a shell script, run its commands via double-click, and stay open, to continue my work in the Terminal.
I often create a standard shell script, and put them in a file, like "myScript.command". This type of file allows me to double-click on it, and run the script inside, but these exit on completion. I want the session to stay open, instead of automatically exiting, so that I can continue from where the script ended. I've seen suggestions to use &
, and wrapping with ( )
, but that still exits.
I've tried things from this thread How to prevent the application launched in Terminal from undesirably exiting? but it wasn't what I needed.
I'm hoping it's some easy switch, or pipe.
Thanks!
$SHELL
.