Skip to content

Quick start

This walkthrough takes you from a fresh install to a session you can detach from and come back to. It assumes the default key map, where the prefix is Ctrl-a.

Terminal window
remux

The first run starts the background server for you, creates a session called main and attaches to it. If sessions already exist, remux attaches to the first one instead of creating a new one.

To start a session with a name of your choosing:

Terminal window
remux new --session work

Most keys go straight to the program in the focused pane. Press Ctrl-a and Remux enters Command mode: a which-key popup lists the keys available from there, grouped by what they act on (p for panes, t for tabs, x for sessions, and so on). Press Esc to back out without doing anything.

The which-key popup after pressing the prefix

You don’t have to memorise the tree. Press Ctrl-a, read the popup, press the next key.

Action Keys
Split side by side Ctrl-a p v
Split top and bottom Ctrl-a p s
New pane, placed by the layout Ctrl-a p n
Move focus left / down / up / right Alt-h / Alt-j / Alt-k / Alt-l
Zoom the focused pane Alt-z
Close the focused pane Ctrl-a p x

Exiting the shell in a pane also closes it.

New panes are arranged by the current layout, BSP by default. Press Alt-Space to cycle through the automatic layouts. See Layouts for what each one does.

Action Keys
New tab Alt-t
Previous / next tab Alt-, / Alt-.
Jump to tab 1 to 9 Alt-1 … Alt-9
Rename the tab Ctrl-a t r
Close the tab Ctrl-a t x

Press Ctrl-a x d to detach. The client exits, and the session keeps running in the server with everything in it.

From any terminal:

Terminal window
remux ls # list sessions
remux attach work # attach to one by name
Action Keys
Quick session switcher Alt-s
Back to the previous session Alt-o
Session manager (tree of every session, tab and pane) Ctrl-a x m
Command palette (search every command) Ctrl-a :

The quick session switcher

Terminal window
remux stop

This saves your sessions and shuts the server down. The next remux starts a new server and, with the default settings, brings the saved sessions back.

  • Concepts: the pieces Remux is made of.
  • Keyboard: modes, which-key and the full default key map.
  • Remotes over SSH: put another machine’s sessions in the same tree.
  • Views: panes from different sessions and machines on one screen.