repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
06415e4
parent
623494f
author
Eric Bower
date
2025-11-27 09:27:45 -0500 EST
docs: clarify detach cmd
2 files changed,  +6, -6
M README.md
+5, -5
 1@@ -18,12 +18,15 @@ session persistence for terminal processes
 2 
 3 ## usage
 4 
 5+> [!IMPORTANT]
 6+> Press `ctrl+\` to detach from the session.
 7+
 8 ```
 9 Usage: zmx <command> [args]
10 
11 Commands:
12   attach <name> [command...]  Create or attach to a session
13-  detach                      Detach from current session (or ctrl+\)
14+  detach                      Detach all clients from current session  (ctrl+\ for current client)
15   list                        List active sessions
16   kill <name>                 Kill a session and all attached clients
17   help                        Show this help message
18@@ -38,9 +41,6 @@ zmx attach build make -j8   # run a build, reattach to check progress
19 zmx attach mux dvtm         # run a multiplexer inside zmx
20 ```
21 
22-> [!IMPORTANT]
23-> Press `ctrl+\` to detach from the session.
24-
25 ## shell prompt
26 
27 When you attach to a zmx session, we don't provide any indication that you are inside zmx. We do provide an environment variable `ZMX_SESSION` which contains the session name.
28@@ -82,7 +82,7 @@ At this point, nothing is configurable and we aren't convinced they should ever
29 
30 ## a smol contract
31 
32-- Write programs that do one thing and do it well.
33+- Write programs that solve a well defined problem.
34 - Write programs that behave the way most users expect them to behave.
35 - Write programs that a single person can maintain.
36 - Write programs that compose with other smol tools.
M src/main.zig
+1, -1
1@@ -184,7 +184,7 @@ fn help() !void {
2         \\
3         \\Commands:
4         \\  attach <name> [command...]  Create or attach to a session
5-        \\  detach                      Detach from current session (or Ctrl+\)
6+        \\  detach                      Detach all clients from current session (ctrl+\ for current client)
7         \\  list                        List active sessions
8         \\  kill <name>                 Kill a session and all attached clients
9         \\  help                        Show this help message