From 5133cabd9e7765953761dd9b1a1529f09b5133e8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 4 Nov 2024 16:40:14 -0300 Subject: Fix: shell: testing some needed fixes for the new tmux scheme --- shell | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell b/shell index 84e95d7..626e42f 100755 --- a/shell +++ b/shell @@ -42,12 +42,20 @@ function shell_wtmux_ls { # Try tmux, then screen function shell_remote_multiplexer { + # Default tmux command tmux="tmux attach" + # Common socket version if [ ! -z "$1" ]; then - tmux="$tmux -t $1" + tmux="tmux attach -t $1" fi + # Ensure there's a separate server running for each session. + # Check wscreen for details + #if [ ! -z "$1" ]; then + # tmux="tmux attach -L${1} -t $1" + #fi + echo "$SUDO $tmux || $SUDO screen -x $1" } -- cgit v1.2.3