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

TermMeaning
SessionA named working environment. It holds tabs and stays alive even when the terminal showing it closes.
TabOne page within a session. Each tab has its own pane layout.
PaneA screen area showing one terminal program.
WindowThe whole screen a client sees. The top line is the tab bar and the bottom line is the status bar.
Prefix keyCtrl b. The next key you press selects a mode.

First steps

  1. Create a session and attach to it right away.

    pmux new-session work
    
  2. Press Ctrl b → p → r in turn to split the screen to the right. Move between the left and right panes with Alt h / Alt l.

  3. Press Ctrl b → o → d to detach from the session. The programs inside the session keep running.

  4. 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.

KeyAction
Alt h j k lMove to the left, lower, upper or right pane
Ctrl b → pPane mode — r split right, d split down, x close, f zoom
Ctrl b → tTab mode — n new tab, 1–9 go to tab, r rename, x close
Ctrl b → nResize mode
Ctrl b → oSession mode — d detach from the session
Ctrl b → sCopy mode — vi-style movement, v select, y copy
Ctrl b → ]Paste
Ctrl b → Ctrl bSend 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.

CommandWhat 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-sessionsList sessions
new-tab, list-tabsCreate a tab, list tabs
split-pane -R / -DSplit a pane to the right / downward
list-panes, capture-paneList 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 pmux does not reach another user's sessions.
  • A configuration file and session restore are not available yet and are planned for a later release.