Apply remain-on-exit tmux option only to windows created by overmind #135
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello 👋 thank you for creating overmind, I really appreciate this tool 🥇
I'm an avid tmux user and I usually run overmind as a daemon. I start my web server and stuff, run
overmind connectand do all my work right there in that tmux session where I can have everything in one place thanks to overmind 🙂However, I noticed the
remain-on-exittmux option being set globally usingsetw -gand it's making all the windows I open inherit this setting. Looks like it's possible to makeremain-on-exitonly apply to windows that overmind created with this simple change I made. I imagine this would save the trouble of dealing withPane is deadmessages for someone looking at some logs withovermind connectand quickly wanting to do something in the same tmux session 😁The
-pflag restricts this setting to the pane, so it'll make it possible to even do some work in a split pane in the same windows as process run by overmind.Thanks again and let me know if you'd be open to this change 😊