all repos — dot @ master

Shell, editor and terminal configuration, and the tools that go with them

bin/mosh-tmux.sh (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
#!/bin/bash

set -euo pipefail

if [[ "$#" -ne 1 ]]; then
  >&2 cat <<EOF
Usage:

    $0 <hostname>
EOF
  exit 1
fi

target="${1}"

mosh "sz@$target" -- tmux new-session -As 0