Hi You should be able to use a session hook to set it on each new window in the session.
On Sat, 13 Aug 2022, 20:24 Terrace Williams, <dirk.bag...@gmail.com> wrote: > I'm trying to create a background session, and then set remain-on-exit so > that all the windows in that session have the option set, but other > sessions are unaffected: > > tmux new-session -d -s home -c home -n cmd > > tmux set-option -t home remain-on-exit on > > But from what I'm reading remain-on-exit can't be set on a session, and > setting it globally isn't what I want. Is there a way to make it so that > only my home session will keep panes open after exit? > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tmux-users+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/e43e9642-c101-42c6-a878-912743788c3dn%40googlegroups.com > <https://groups.google.com/d/msgid/tmux-users/e43e9642-c101-42c6-a878-912743788c3dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcEomXb%3DCMOyuPJiyJ%3DtOhXrBnwe2GbbwqQYPcE6zQug0A%40mail.gmail.com.