From d2c5c59374881071669638723d99a931f7185292 Mon Sep 17 00:00:00 2001 From: jerryskye Date: Fri, 26 Aug 2022 19:10:20 +0200 Subject: [PATCH] Apply remain-on-exit tmux option only to windows created by overmind --- start/tmux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start/tmux.go b/start/tmux.go index ce1ea46..cf29615 100644 --- a/start/tmux.go +++ b/start/tmux.go @@ -104,11 +104,12 @@ func (t *tmuxClient) Start() error { } } - args = append(args, "setw", "-g", "remain-on-exit", "on", ";") args = append(args, "setw", "-g", "allow-rename", "off", ";") } else { args = append(args, "neww", "-n", p.Name, "-P", "-F", tmuxPaneMsg, p.Command, ";") } + + args = append(args, "set", "-p", "remain-on-exit", "on", ";") } t.cmd = exec.Command("tmux", args...)