Page History

tmux

Mark George edited this page 24 days ago

Clone this wiki locally

Create new session

tmux

Detach from session

ctrl+b d

Attach to existing session

tmux attach

If you forgot to detach then you won't be able to attach unless you detach existing sessions using:

tmux attach -d

View sessions/windows

In tmux you can use:

ctrl+b w

From command line you can use:

# view sessions
tmux ls

# attach to specific session
tmux attach -t <session ID>

Enable mouse wheel scrolling

Enter command mode with:

ctrl+b :

Then enter:

set mouse on

This enables a bunch of other mouse options as well including a context menu on right click. Mouse selection works by default and will copy on select.

Scrolling and selecting with keyboard

Enable scroll mode with:

ctrl+b [

You can then scroll with arrow keys and page up/down. Press Enter to quit scroll mode.

Selecting and copying

Vi mode seems to be the easiest option. Set Vi mode by entering command mode with:

ctrl+b :

And enter:

set mode-keys vi

Use standard Vi keys for selection, and Enter to yank and exit selection mode.