flake-update-20260505
 1# Mosh wrapper: support host/session syntax for shpool integration
 2# Usage: mosh okinawa.sbr.pm/home → mosh okinawa.sbr.pm -- shpool-ssh-wrapper home
 3has mosh || return
 4
 5mosh() {
 6  local first="$1"
 7  if [[ "$first" == */* ]]; then
 8    local host="${first%%/*}"
 9    local session="${first#*/}"
10    shift
11    command mosh "$host" "$@" -- shpool-ssh-wrapper "$session"
12  else
13    command mosh "$@"
14  fi
15}