Browse Source

Add a lazy script to mosh and tmux

Samuel W. Flint 1 year ago
parent
commit
7bf79bc304
1 changed files with 9 additions and 0 deletions
  1. 9 0
      mt

+ 9 - 0
mt

@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ $# -lt 1 ] ; then
+    echo "Usage: $(basename $0) HOST [ SESSION_NAME ]" >&2
+elif [ $# -eq 1 ] ; then
+    mosh $1 -- tmux new-session
+else
+    mosh $1 -- tmux new-session -A -s $2
+fi