From 5c64115e5dc22b1570c11c5eb495ebfd089dc825 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 12 Sep 2025 00:47:25 +0200 Subject: [PATCH] tmux: Enable detach-on-destroy for scratch sessions --- sesh/dot-config/sesh/sesh.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sesh/dot-config/sesh/sesh.toml b/sesh/dot-config/sesh/sesh.toml index 1c6d7b2..d7a75e6 100644 --- a/sesh/dot-config/sesh/sesh.toml +++ b/sesh/dot-config/sesh/sesh.toml @@ -4,7 +4,7 @@ blacklist = ["scratch-*"] # Scratch sessions rename themselves to something unique and are hidden from the overview [[session]] name = "scratch" -startup_command = "tmux rename-session scratch-$(echo -n $(date) | sha256sum | cut -c1-4) && clear" +startup_command = "tmux rename-session scratch-$(echo -n $(date) | sha256sum | cut -c1-4) && tmux set detach-on-destroy on && clear" [[session]] name = "automation_rs"