aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-05-19 18:53:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-05-19 18:53:35 -0300
commit4fbed988b5c787740dc08d27fecf9e9151baf281 (patch)
treecd85c1fa87077704237c6feed046cb725ec6459b /shell
parent757bcb115efa59abbb80424efef36f074d82ffc9 (diff)
downloadtermplex-4fbed988b5c787740dc08d27fecf9e9151baf281.tar.gz
termplex-4fbed988b5c787740dc08d27fecf9e9151baf281.tar.bz2
Adds wtmux
Diffstat (limited to 'shell')
-rwxr-xr-xshell5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell b/shell
index 0588fbe..36aa30d 100755
--- a/shell
+++ b/shell
@@ -7,6 +7,7 @@
BASENAME="`basename $0`"
DEST="$1"
COMMAND="$2"
+MULTIPLEXER="wscreen"
# Set window title
# http://stackoverflow.com/questions/899609/gnu-screen-run-script-that-sends-commands-to-the-screen-session-it-is-being-run
@@ -39,7 +40,7 @@ if [ "$BASENAME" == "shells" ]; then
else
if [ -z "$COMMAND" ] && screen -ls $DEST | grep -q "There is a screen on"; then
# Local existing screen shell
- wscreen $DEST
+ $MULTIPLEXER $DEST
elif [ -z "$COMMAND" ] && [ "$DEST" == "root" ]; then
# Local root shell
window_title root
@@ -51,7 +52,7 @@ else
elif [ "$DEST" == "local" ]; then
# Local screen shell
window_title $COMMAND
- wscreen $COMMAND
+ $MULTIPLEXER $COMMAND
else
# Remote shell using autossh
autossh $DEST -t -- $COMMAND