From 328c741b1aac74020412e99e0dca7c728dbc92fa Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Jun 2025 22:33:44 -0400 Subject: refactor --- home/tmux/tmux_window | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 home/tmux/tmux_window (limited to 'home/tmux/tmux_window') diff --git a/home/tmux/tmux_window b/home/tmux/tmux_window new file mode 100755 index 0000000..1cdacf0 --- /dev/null +++ b/home/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 -- cgit v1.2.3-freya