summaryrefslogtreecommitdiff
path: root/.config/tmux/popup.sh
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2026-03-16 10:18:11 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2026-03-16 10:18:11 +0100
commit0de92d582c7cd9d52ae5c506fffbe36be7a8d172 (patch)
tree5759b3e313e32714eff5182fd15691abc6346e38 /.config/tmux/popup.sh
parent1ca208fcd804a377c8e9a4eaec03d20e3dd7d5c9 (diff)
Update popup tmuxHEADmaster
Diffstat (limited to '.config/tmux/popup.sh')
-rwxr-xr-x.config/tmux/popup.sh13
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