Update 'bash/tmux_launcher.bash'

This commit is contained in:
daryl
2022-07-11 14:03:17 +09:30
parent 757f50fa5a
commit 96447a30e9

View File

@@ -11,8 +11,19 @@ tmux attach -t sessionname # jump into the acti
tmux send-keys -t sessionname:0.0 'q' 'C-m' # tell 'top' in top pane to quit (C-m probably not needed here...)
tmux kill-session -t sessionname # close tmux session
# NOTE: need the following at the end of 'script.bs' to make it drop out, first two lines are optional but a good way to hold
# the session open until user is ready to close it, last line is the kick back to this higher level tmux wrapper.
#
# echo "Press any key to close the window."
# read -s -n1
# tmux detach
#
# If you can also call script.bs NOT from the tmux wrapper, then only do the above if you're actually insidie a tmux.
# This works because tmux handily sets the TMUX variable so you can trivially check.
#
# if [ "$TMUX" ]; then
# echo "Press any key to close the window."
# read -s -n1
# tmux detach
# fi