tmux

Quick Reference

Prefix=Ctrl+SpaceCtrl + B also works

01 Sessions

  • Prefix+CNew session
  • Prefix+KKill session
  • Prefix+RRename session
  • Prefix+NNext session
  • Prefix+PPrevious session
  • Alt+↑ ↓Navigate sessions
  • Prefix+sList sessions
  • Prefix+dDetach

CLI

  • tmux new -s nameNew named session
  • tmux lsList sessions
  • tmux a -t nameAttach to session
  • tmux kill-session -t nameKill session

02 Windows

  • Prefix+cNew window
  • Prefix+kKill window
  • Prefix+rRename window
  • Alt+1-9Jump to window
  • Alt+← →Switch windows

Standard

  • Prefix+wList windows
  • Prefix+lLast active window
  • Prefix+pPrevious window
  • Prefix+nNext window

03 Panes

  • Prefix+vSplit vertically
  • Prefix+hSplit horizontally
  • Prefix+xKill pane
  • Prefix+zToggle zoom
  • Ctrl+Alt+ArrowsNavigate panes
  • Ctrl+Alt+Shift+ArrowsResize panes

Standard

  • Prefix+;Last active pane
  • Prefix+{Move pane left
  • Prefix+}Move pane right
  • Prefix+!Pane to window
  • Prefix+SpaceToggle layouts
  • Prefix+oNext pane
  • Prefix+qShow pane numbers

04 Copy Mode

vi-style

  • Prefix+[Enter copy mode
  • vBegin selection
  • yCopy selection
  • qQuit copy mode
  • /Search forward
  • ?Search backward
  • nNext match
  • NPrevious match

05 Resurrect

  • Prefix+Ctrl-sSave environment
  • Prefix+Ctrl-rRestore environment

TPM

  • Prefix+IInstall plugins
  • Prefix+UUpdate plugins
  • Prefix+Alt+uUninstall plugins
  • Saves/restores sessions, windows, panes, and working directories
  • Restores: vi, vim, nvim, emacs, man, less, top, htop, and more
  • State stored in ~/.local/share/tmux/resurrect/
  • Plugins in ~/.config/tmux/plugins/ (managed by TPM)
  • Continuum (auto-save) is not installed
  • How to install TPM + Resurrect

06 General

  • Prefix+qReload config
  • Prefix+:Command prompt
  • Prefix+?List keybindings

Omarchy tmux bindings · ~/.config/tmux/tmux.conf