Refactor tmux-oneshot.sh to improve command configuration readability
This commit is contained in:
@@ -2,13 +2,14 @@
|
|||||||
# tmux-oneshot.sh
|
# tmux-oneshot.sh
|
||||||
# Run a single command in a tmux session
|
# Run a single command in a tmux session
|
||||||
|
|
||||||
|
SESSION=""
|
||||||
|
ATTACH_SESSION=0
|
||||||
|
|
||||||
# Hardcoded command and settings (uncomment and modify as needed)
|
# Hardcoded command and settings (uncomment and modify as needed)
|
||||||
# SESSION="mytest"
|
# SESSION="mytest"
|
||||||
# COMMAND="ping google.com"
|
# COMMAND="ping google.com"
|
||||||
# ATTACH_SESSION=1
|
# ATTACH_SESSION=1
|
||||||
|
|
||||||
SESSION=""
|
|
||||||
ATTACH_SESSION=0
|
|
||||||
|
|
||||||
while getopts "t:a" opt; do
|
while getopts "t:a" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
|
Reference in New Issue
Block a user