1.7 KiB
1.7 KiB
Tmux Cheatsheet
Prefix Key
Ctrl + Space: Prefix key (instead of defaultCtrl + B)
Session Management
tmux new -s <name>: Create new sessiontmux attach -t <name>: Attach to existing sessiontmux ls: List sessionstmux kill-session -t <name>: Kill a specific session
Window Navigation
Shift + Left Arrow: Previous windowShift + Right Arrow: Next windowAlt + H: Previous windowAlt + L: Next window
Pane Navigation
Alt + Arrow Keys: Switch between panesCtrl + Space+h: Move to left paneCtrl + Space+j: Move to down paneCtrl + Space+k: Move to up paneCtrl + Space+l: Move to right pane
Pane Management
Ctrl + Space+": Split window vertically (current path)Ctrl + Space+%: Split window horizontally (current path)Ctrl + Space+x: Close current pane
Copy Mode (Vi-style)
Ctrl + Space+[: Enter copy modev: Start selectionCtrl + v: Toggle rectangle selectiony: Copy selection and exit copy mode
Resize Panes
Ctrl + Space+(Hold) Arrow Keys: Resize panes
Misc
Ctrl + Space+r: Reload tmux configCtrl + Space+?: List all key bindings
Installed Plugins
- TPM (Tmux Plugin Manager)
- tmux-sensible
- vim-tmux-navigator
- Catppuccin theme
- tmux-yank (for clipboard integration)
Mouse Mode
- Enabled by default
- Click to switch panes
- Scroll through pane content
- Resize panes by dragging
Configuration Details
- Base index starts at 1 (windows and panes)
- Vi mode enabled for copy mode
- Automatic window renumbering
- Catppuccin Mocha color theme
Pro Tips
- Use
Ctrl + Space+dto detach from session - Sessions persist after detaching