#!/bin/sh # vim: set sw=4 ts=4 sts=4 et : if [ -z "${TMUX}" ]; then exec tmux new-session -s serial -d "$0" fi tmux \ set-option -t serial:0 -w remain-on-exit on \; \ rename-window -t serial:0 info cat <<'EOF' This window must remain open to keep the tmux server/session running. If all windows are closed, tmux will exit and will not be able to receive commands to add new windows for hotplugged devices. Use `respawn-window` to restart all serial terminal windows. EOF