mt 199 B

123456789
  1. #!/bin/sh
  2. if [ $# -lt 1 ] ; then
  3. echo "Usage: $(basename $0) HOST [ SESSION_NAME ]" >&2
  4. elif [ $# -eq 1 ] ; then
  5. mosh $1 -- tmux new-session
  6. else
  7. mosh $1 -- tmux new-session -A -s $2
  8. fi