diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-11-04 16:40:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-11-04 16:40:14 -0300 |
commit | 5133cabd9e7765953761dd9b1a1529f09b5133e8 (patch) | |
tree | 2f7228a3ea2b65f7e69d175605d66d479999e603 | |
parent | 04f8ce0edf936e53bc197ac58bb64afcfaaf2219 (diff) | |
download | termplex-5133cabd9e7765953761dd9b1a1529f09b5133e8.tar.gz termplex-5133cabd9e7765953761dd9b1a1529f09b5133e8.tar.bz2 |
-rwxr-xr-x | shell | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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" } |