Files
linux-workspace/bin/xmosh
2020-08-13 11:06:41 +02:00

12 lines
161 B
Bash
Executable File

#!/bin/bash
endpoint=$1
if [[ $endpoint == *:* ]]; then
host=${endpoint%:*}
port=${endpoint#*:}
mosh --ssh="ssh -p $port" $host
else
mosh $endpoint
fi