pmux user guide
The basics of pmux, a terminal multiplexer that runs several shells, editors and builds side by side in one terminal and keeps your work going when the connection drops.
What is pmux
pmux is a TUI terminal multiplexer written in Rust by PPOPPO Corp. In a single terminal you can run several programs side by side — shells, editors, REPLs, builds.
- Work that does not break — each session runs its own server process, so the session keeps running even if you close the terminal or the SSH connection drops.
- Familiar controls — a single tmux-style prefix key (
Ctrl b) followed by Zellij-style modes. The command set follows tmux. - Korean-friendly — displaying and inputting Korean and other Unicode text correctly is a core goal.
Supported platforms are Linux and macOS.
Installation
pmux is currently built and installed from source. You need a Rust toolchain and just.
just install
This builds a release binary and installs it to ~/.local/bin/pmux. Installation stops if another pmux comes first on your PATH, so make sure ~/.local/bin is near the front of PATH.
Core concepts
| Term | Meaning |
|---|---|
| Session | A named working environment. It holds tabs and stays alive even when the terminal showing it closes. |
| Tab | One page within a session. Each tab has its own pane layout. |
| Pane | A screen area showing one terminal program. |
| Window | The whole screen a client sees. The top line is the tab bar and the bottom line is the status bar. |
| Prefix key | Ctrl b. The next key you press selects a mode. |
First steps
-
Create a session and attach to it right away.
pmux new-session work -
Press
Ctrl b→p→rin turn to split the screen to the right. Move between the left and right panes withAlt h/Alt l. -
Press
Ctrl b→o→dto detach from the session. The programs inside the session keep running. -
List the sessions and attach again.
pmux list-sessions pmux attach-session -t work
Key bindings
In any mode, Esc returns to the default mode, and the status bar shows the keys available in the current mode.
| Key | Action |
|---|---|
Alt h j k l | Move to the left, lower, upper or right pane |
Ctrl b → p | Pane mode — r split right, d split down, x close, f zoom |
Ctrl b → t | Tab mode — n new tab, 1–9 go to tab, r rename, x close |
Ctrl b → n | Resize mode |
Ctrl b → o | Session mode — d detach from the session |
Ctrl b → s | Copy mode — vi-style movement, v select, y copy |
Ctrl b → ] | Paste |
Ctrl b → Ctrl b | Send Ctrl b to the program in the pane |
Commands
Every command has the form pmux <command> [options] [arguments]. Run pmux help <command> for help on each command.
| Command | What it does |
|---|---|
new-session [-d] <name> | Create a session (-d keeps it in the background without attaching) |
attach-session -t <session> | Attach to a session |
list-sessions | List sessions |
new-tab, list-tabs | Create a tab, list tabs |
split-pane -R / -D | Split a pane to the right / downward |
list-panes, capture-pane | List panes, capture a pane's screen content |
A pmux command run inside a pane finds its own session automatically, so -t is not needed.
Good to know
- Several clients can attach to one session at the same time. The screen size then follows the most recently attached client.
- Only the user who created a session can access it.
sudo pmuxdoes not reach another user's sessions. - A configuration file and session restore are not available yet and are planned for a later release.