Explorar o código

Add a lazy script to mosh and tmux

Samuel W. Flint hai 6 meses
pai
achega
7bf79bc304
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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