Skip to content

Commit 43ac1d6

Browse files
committed
feat(ghostty-tmux): create new session with destroy-unattached when ghostty running
Previously, when ghostty was already running, the script would launch a new ghostty instance without proper tmux session management. Now it creates a new tmux session with destroy-unattached option to properly clean up when the window closes.
1 parent 3706a86 commit 43ac1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
if pgrep -x "ghostty" >/dev/null; then
4-
ghostty &
4+
ghostty -e sh -c "tmux new-session \; set-option destroy-unattached on" &
55
else
66
ghostty -e sh -c "tmux attach || tmux" &
77
fi

0 commit comments

Comments
 (0)