Kaynağa Gözat

Add a lazy script to mosh and tmux

Samuel W. Flint 6 ay önce
ebeveyn
işleme
7bf79bc304
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  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