Refactor tmux-oneshot.sh to improve command configuration readability
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user