summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2024-03-13 11:25:50 +0000
committernicm <nicm>2024-03-13 11:25:50 +0000
commit8ffd5458ff850ae556069ed61ec111cefa0a31ea (patch)
tree810b005cccb4da6515ce0f5f7bb7ed2fb06d93fc
parentbd29a48b56ae649d425fd6939d60f75d79d767da (diff)
Make the attach-session description clearer - do not mention creating a
client which is not important, explicitly say the session must exist, and mention new-session and new-session -A. Prompted by Theo.
-rw-r--r--tmux.112
1 files changed, 10 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 62ab9b4f..32215371 100644
--- a/tmux.1
+++ b/tmux.1
@@ -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.