#!/bin/sh

set -eu

if [ $# -eq 1 ]; then
       exec mosh "$1" ~/bin/tmux-reattach
else
       exec mosh "$@"
fi