summaryrefslogtreecommitdiff
path: root/ssh-tmux.1
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-tmux.1')
-rw-r--r--ssh-tmux.111
1 files changed, 8 insertions, 3 deletions
diff --git a/ssh-tmux.1 b/ssh-tmux.1
index 590d9eb..40863b0 100644
--- a/ssh-tmux.1
+++ b/ssh-tmux.1
@@ -63,12 +63,12 @@ Execute a possibly long-running interactive remote command:
$ ssh-tmux example.com "cd project && make && doas make install"
.Ed
.Pp
-A command with local and remote shell expansion:
+Connect and attach from another client or after disconnection:
.Bd -literal -offset indent
-$ ssh-tmux example.com echo $HOST \e$HOST
+$ ssh -t example.com "tmux attach-session \e; choose-tree"
.Ed
.Pp
-Detach and re-attach session:
+Detach and re-attach a named session:
.Bd -literal -offset indent
$ ssh-tmux -d -s monitor example.com top
$ ssh -t example.com tmux attach-session -t monitor
@@ -79,6 +79,11 @@ Move window to another session:
$ ssh-tmux -d -s monitor -n top example.com top
$ ssh -t example.com "tmux new-session -A -s mysession \e; move-window -s monitor:top"
.Ed
+.Pp
+A command with local and remote shell expansion:
+.Bd -literal -offset indent
+$ ssh-tmux example.com echo $HOST \e$HOST
+.Ed
.Sh SEE ALSO
.Xr nohup 1 ,
.Xr ssh 1 ,
Generated by cgit. See skreutz.com for my tech blog and contact information.