summaryrefslogtreecommitdiff
path: root/programs/tmux/tmux_window
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-17 23:39:56 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-17 23:39:56 -0400
commit3a9c1a0fdd922faa24a8c4d79fcd6d8e2699293d (patch)
tree553321fb9f5235b9a9175b7f15c9f44a1c891e6b /programs/tmux/tmux_window
parentunofficial-homestuck-collection: 2.6.5 -> 2.6.6 (diff)
downloaddotfiles-nix-3a9c1a0fdd922faa24a8c4d79fcd6d8e2699293d.tar.gz
dotfiles-nix-3a9c1a0fdd922faa24a8c4d79fcd6d8e2699293d.tar.bz2
dotfiles-nix-3a9c1a0fdd922faa24a8c4d79fcd6d8e2699293d.zip
tmux
Diffstat (limited to '')
-rwxr-xr-xprograms/tmux/tmux_window7
1 files changed, 7 insertions, 0 deletions
diff --git a/programs/tmux/tmux_window b/programs/tmux/tmux_window
new file mode 100755
index 0000000..1cdacf0
--- /dev/null
+++ b/programs/tmux/tmux_window
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if tmux list-windows | grep -q "^$1:"; then
+ tmux select-window -t "$1"
+else
+ tmux new-window -t "$1"
+fi