1
0
Fork 0
forked from murx/murx

Added -l and --list-sessions to the client.

This commit is contained in:
Johannes Findeisen 2026-11-16 04:30:33 +01:00
commit 9eff55f573
5 changed files with 129 additions and 20 deletions

View file

@ -5,21 +5,29 @@ dependencies.
```sh
make -B CC=clang
./moerx # session "0"
./moerx work # separate named session
./moerx -p x work # use Ctrl-X as this client's prefix
./moerx --prefix x work # same as -p x
./moerx -s bottom work # show the session status line at the bottom
./moerx --status bottom work # same as -s bottom
./moerx --no-cwd work # show [moerx] instead of the directory
./moerx --no-cwd --no-moerx work # do not show [moerx] instead of the directory
./moerx --no-clock work # hide the status bar clock
./moerx --no-hostname work # hide the hostname: prefix in window titles
./moerx --help # all shortcuts
./moerx # session "0"
./moerx work # separate named session
./moerx -p x work # use Ctrl-X as this client's prefix
./moerx --prefix x work # same as -p x
./moerx -s bottom work # show the session status line at the bottom
./moerx --status bottom work # same as -s bottom
./moerx --no-cwd work # show [moerx] instead of the directory
./moerx --no-cwd --no-moerx work # do not show [moerx] instead of the directory
./moerx --no-clock work # hide the status bar clock
./moerx --no-hostname work # hide the hostname: prefix in window titles
./moerx -l, --list-sessions # list running sessions without attaching
./moerx --help # all shortcuts
```
Detach with `Ctrl-A d`. Run `moerx` again to reattach.
Use `moerx -l` or `moerx --list-sessions` to list running sessions, sorted by
name, one per line. Listing works without a terminal and does not create or
attach to a session. It checks the current user's runtime socket directory
and `/tmp` fallback, skips stale sockets, and prints nothing when no sessions
are running. Do not pass a session name with this option. Use `moerx name`
to attach to a listed session.
The [moerx(1) manual](moerx.1) covers all options, shortcuts, session behavior,
and remote shell setup. Read it locally with `man ./moerx.1`. Run
`make install` to install both the program and manual, then use `man moerx`.