This question is super similar to this, but I'm curious how to launch the shell script in a non-login shell prompt. I already have it set up to run with iterm2 when I double-click. I don't really care if it uses iterm2 or Terminal, I can easily switch that if needed. I really am just interested in getting it to run in a non-login prompt.
I have my script set to run by dash (!#/usr/bin/env dash
) but because it first starts up a zsh login prompt it sometimes prompts me things I don't want it to bother with (e.g., starting my ssh agent and asking if I want to update oh-my-zsh).
My guess (I might be wrong) is that if it started as a non-login prompt it wouldn't try to do these things. If it turns out that zsh non-login prompt still does this then I can probably set it up to run straight in dash in a similar way.
script; exit
(I can see this on the line before it closes). Because it opens a zsh login shell it does the things mentioned in the OP that are annoying.