Commit 6e0e7f093eb2
Changed files (1)
dots
config
zsh
tools
dots/config/zsh/tools/mosh.zsh
@@ -0,0 +1,15 @@
+# Mosh wrapper: support host/session syntax for shpool integration
+# Usage: mosh okinawa.sbr.pm/home → mosh okinawa.sbr.pm -- shpool-ssh-wrapper home
+has mosh || return
+
+mosh() {
+ local first="$1"
+ if [[ "$first" == */* ]]; then
+ local host="${first%%/*}"
+ local session="${first#*/}"
+ shift
+ command mosh "$host" "$@" -- shpool-ssh-wrapper "$session"
+ else
+ command mosh "$@"
+ fi
+}