Skip to content

Commit

Permalink
Make the attach-session description clearer - do not mention creating a
Browse files Browse the repository at this point in the history
client which is not important, explicitly say the session must exist,
and mention new-session and new-session -A. Prompted by Theo.
  • Loading branch information
nicm committed Mar 13, 2024
1 parent bd29a48 commit 8ffd545
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tmux.1
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,17 @@ The following commands are available to manage clients and sessions:
.D1 Pq alias: Ic attach
If run from outside
.Nm ,
create a new client in the current terminal and attach it to
attach to
.Ar target-session
in the current terminal.
.Ar target-session
must already exist - to create a new session, see the
.Ic new-session
command (with
.Fl A
to create or attach).
If used from inside, switch the currently attached session to
.Ar target-session .
If used from inside, switch the current client.
If
.Fl d
is specified, any other clients attached to the session are detached.
Expand Down

0 comments on commit 8ffd545

Please sign in to comment.