this repo has no description
1#!/bin/bash
2
3if [[ -e "/opt/homebrew/bin/mosh" ]]; then
4 MOSH="/opt/homebrew/bin/mosh"
5else
6 MOSH="/usr/local/bin/mosh"
7fi
8
9case "$1" in
10home)
11 SERVER="--server=/usr/local/bin/mosh-server"
12 "$MOSH" "$SERVER" --ssh="ssh -p 2222" home.arko.me ~/.bin/tmux-named main
13 ;;
14*)
15 SERVER="--server=/opt/homebrew/bin/mosh-server"
16 "$MOSH" "$SERVER" "$@"
17 ;;
18esac