BASH: tmux cheat sheet

Uses my tmux.conf

## PREFIX = Ctrl+b ##

# Standard tmux commands:

# Session Management
PREFIX + d: Detach from the current session.

PREFIX + s: List all sessions in an interactive menu.

PREFIX + $: Rename the current session.

#Window Management
PREFIX + w: List all windows in an interactive menu.

PREFIX + p: Go to the previous window.

PREFIX + n: Go to the next window.

PREFIX + 0-9: Go to a specific window by its number.

PREFIX + ,: Rename the current window.

PREFIX + &: Kill the current window (and all its panes).

# Pane Management
PREFIX + o: Cycle focus to the next pane.

PREFIX + ;: Go to the previously active pane.

PREFIX + x: Kill the current pane.

PREFIX + z: Toggle zoom for the current pane (maximizes/minimizes it).

PREFIX + {: Move the current pane to the left.

PREFIX + }: Move the current pane to the right.

PREFIX + Spacebar: Cycle through the available pane layouts.

# Copy Mode (Scrolling & Copying)
PREFIX + [: Enter copy mode (allows you to scroll up).

PREFIX + ]: Paste the contents of the tmux copy buffer.

PREFIX + ?: List all current key bindings.


## Commands from my tmux.conf

#Pane Management
Alt + Left/Right/Up/Down: Select the pane in that direction (does not require the PREFIX).

PREFIX + |: Split the current pane horizontally (new pane on the right).

PREFIX + -: Split the current pane vertically (new pane below).

PREFIX + \: Split the current pane horizontally, spanning the full window width.

PREFIX + _: Split the current pane vertically, spanning the full window height.

# Window Management
PREFIX + c: Create a new window, inheriting the path of the current pane.

# Mouse Support
# Mouse Click: Select pane or window.
# Mouse Scroll: Scroll up and down in pane history.
# Mouse Drag: Resize pane borders.

#Plugin Commands (TPM & Resurrect)
PREFIX + Ctrl+s: (Resurrect) Save your tmux session.

PREFIX + Ctrl+r: (Resurrect) Restore your last saved tmux session.

PREFIX + I: (TPM) Install any new plugins listed in your config.

PREFIX + U: (TPM) Update all installed plugins.

"Yeah, well, that's just, like, your opinion, man."