summaryrefslogtreecommitdiff
path: root/.config/tmux/popup.sh
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2026-03-16 22:34:58 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2026-03-16 22:34:58 +0100
commit443af22e38d99ec6c18e4af4816a053de2f1964c (patch)
tree4c30ed87de861cc3191aa0fd915422c2fa4ad75c /.config/tmux/popup.sh
parent0de92d582c7cd9d52ae5c506fffbe36be7a8d172 (diff)
Update popup tmux
Diffstat (limited to '.config/tmux/popup.sh')
-rwxr-xr-x.config/tmux/popup.sh14
1 files changed, 2 insertions, 12 deletions
diff --git a/.config/tmux/popup.sh b/.config/tmux/popup.sh
index 15eed1a..7017cad 100755
--- a/.config/tmux/popup.sh
+++ b/.config/tmux/popup.sh
@@ -1,13 +1,3 @@
#!/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
+parent=$(tmux display-message -p '#S')
+tmux attach -t "popup-${parent}" 2>/dev/null || tmux new-session -s "popup-${parent}"