tmux: Enable detach-on-destroy for scratch sessions

This commit is contained in:
2025-09-12 00:47:25 +02:00
parent af1ddc5b3f
commit 5c64115e5d

View File

@@ -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"