tmosh 204 B

12345678910111213
  1. #!/usr/bin/env bash
  2. PROG_NAME=$(basename "$0")
  3. if [[ $# -ne 2 ]] ; then
  4. echo "${PROG_NAME} HOST SESSION" >&2
  5. exit 1
  6. fi
  7. HOST=$1
  8. SESSION=$2
  9. mosh "${HOST}" -- tmux new-session -A -s "${SESSION}"