From e46aba65becf63f68a1c6b00ba769ed804cee349 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 4 Oct 2025 12:11:03 +0200 Subject: [PATCH] Refactor tmux-oneshot.sh to improve command configuration readability --- tmux-oneshot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tmux-oneshot.sh b/tmux-oneshot.sh index ed4a705..f3c0dfc 100644 --- a/tmux-oneshot.sh +++ b/tmux-oneshot.sh @@ -2,13 +2,14 @@ # tmux-oneshot.sh # Run a single command in a tmux session +SESSION="" +ATTACH_SESSION=0 + # Hardcoded command and settings (uncomment and modify as needed) # SESSION="mytest" # COMMAND="ping google.com" # ATTACH_SESSION=1 -SESSION="" -ATTACH_SESSION=0 while getopts "t:a" opt; do case "$opt" in