diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-17 23:39:56 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-17 23:39:56 -0400 |
commit | 3a9c1a0fdd922faa24a8c4d79fcd6d8e2699293d (patch) | |
tree | 553321fb9f5235b9a9175b7f15c9f44a1c891e6b /programs/tmux/tmux_window | |
parent | unofficial-homestuck-collection: 2.6.5 -> 2.6.6 (diff) | |
download | dotfiles-nix-3a9c1a0fdd922faa24a8c4d79fcd6d8e2699293d.tar.gz dotfiles-nix-3a9c1a0fdd922faa24a8c4d79fcd6d8e2699293d.tar.bz2 dotfiles-nix-3a9c1a0fdd922faa24a8c4d79fcd6d8e2699293d.zip |
tmux
Diffstat (limited to '')
-rwxr-xr-x | programs/tmux/tmux_window | 7 |
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 |