#!/bin/bash set -euo pipefail if [[ "$#" -ne 1 ]]; then >&2 cat < EOF exit 1 fi target="${1}" mosh "sz@$target" -- tmux new-session -As 0