]> gitweb.fluxo.info Git - termplex.git/commitdiff
Fix: shell: testing some needed fixes for the new tmux scheme
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 4 Nov 2024 19:40:14 +0000 (16:40 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 4 Nov 2024 19:40:14 +0000 (16:40 -0300)
shell

diff --git a/shell b/shell
index 84e95d71d60bde3578cdc60e08543dba4204fd4c..626e42f1b63ff7c0dc4b9e0234d7291f38267392 100755 (executable)
--- 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"
 }