diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2026-03-16 10:18:11 +0100 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2026-03-16 10:18:11 +0100 |
| commit | 0de92d582c7cd9d52ae5c506fffbe36be7a8d172 (patch) | |
| tree | 5759b3e313e32714eff5182fd15691abc6346e38 | |
| parent | 1ca208fcd804a377c8e9a4eaec03d20e3dd7d5c9 (diff) | |
| -rwxr-xr-x | .config/tmux/popup.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/tmux/popup.sh b/.config/tmux/popup.sh new file mode 100755 index 0000000..15eed1a --- /dev/null +++ b/.config/tmux/popup.sh @@ -0,0 +1,13 @@ +#!/bin/sh +parent=$(tmux display-message -p "#{session_name}") +popup="popup-$parent" + +if tmux has-session -t "$popup" 2>/dev/null; then + tmux attach-session -t "$popup" +else + tmux new-session -s "$popup" \; \ + rename-window "build" \; \ + new-window -n "test" \; \ + new-window -n "repl" \; \ + select-window -t 1 +fi |