From 4ebcb39d8eaca28828a9a9ca70271971d9ea1f57 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 5 Oct 2016 10:21:34 +0100 Subject: [PATCH] Move to screen from tmux. --- .bashrc_local.sample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bashrc_local.sample b/.bashrc_local.sample index 9b1aae7..5d20777 100644 --- a/.bashrc_local.sample +++ b/.bashrc_local.sample @@ -1,4 +1,4 @@ -# Launch/restore tmux command sessions -if [ -x $(which tmux) ]; then - tmux has-session && tmux -CC attach || tmux -CC +# Launch/restore screen +if [ -x $(which screen 2>/dev/null) ]; then + if [ -z "$STY" ]; then exec screen -xRR; fi fi