Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 1.68 KB

File metadata and controls

76 lines (54 loc) · 1.68 KB

Tmux Key Mappings

Prefix key is C-a (Ctrl+a).

Sessions

Key Action
C-a d Detach from current session
C-a C-a Switch to last active window

Windows

Key Action
C-a c Create new window (in current directory)
C-a r Reload tmux configuration

Panes

Creating panes

Key Action
C-a v Vertical split (side by side)
C-a s Horizontal split (top and bottom)

Navigating panes

Pane navigation is shared with vim — works seamlessly across vim splits and tmux panes.

Key Action
C-h Move to left pane
C-j Move to pane below
C-k Move to pane above
C-l Move to right pane

Resizing panes

Key Action
Shift-Left/Right Resize horizontally (small step)
Shift-Up/Down Resize vertically (small step)
C-Left/Right Resize horizontally (large step)
C-Up/Down Resize vertically (large step)
C-z Toggle zoom on current pane

Synchronization

Send the same input to all panes in a window — useful for running the same command on multiple servers.

Key Action
C-a e Enable pane synchronization
C-a E Disable pane synchronization

Copy Mode

Enter copy mode with C-a C-[. Uses vi keybindings.

Key Action
v Begin selection
C-v Toggle rectangle selection
y Copy selection to clipboard
Enter Copy selection to clipboard

Status Bar

The status bar shows:

  • Current session name and user (left)
  • Window list (center)
  • Battery status, hostname, and date/time (right)

Windows are automatically renamed to the current directory.