From 6e0bb061bfff93668f6236b8330002fb2e734e2b Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Fri, 12 Jun 2020 23:09:00 +0200 Subject: [PATCH] bin: introduce `moshscreen` helper connecting and attaching tmux or screen Signed-off-by: Alejandro Mery --- files/bin/moshscreen | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 files/bin/moshscreen diff --git a/files/bin/moshscreen b/files/bin/moshscreen new file mode 100755 index 0000000..901e0e4 --- /dev/null +++ b/files/bin/moshscreen @@ -0,0 +1,9 @@ +#!/bin/sh + +set -eu + +if [ $# -eq 1 ]; then + exec mosh "$1" ~/bin/tmux-reattach +else + exec mosh "$@" +fi