Tmux Notes
Container Relation
- Session has_many Window
- Window has_many Pane
Prefix
Default: Ctrl-b
Customize: ~/.tmux.conf
unbind C-b
set -g prefix C-a
Pane
| Action | Shortcut Key |
|---|---|
| vertical pane | Prefix + % |
| horizontal pane | Prefix + “ |
| switch pane | Prefix + o |
| switch pane | Prefix + (direction key) |
| close current pane | Prefix + x |
| close all pane | Prefix + ! |
Window
| Action | Shortcut Key |
|---|---|
| new window | Prefix + c |
| switch window | Prefix + (index) |
| close window | Prefix + & |
Session
| Action | Shortcut Key |
|---|---|
| create session from CLI | $ tmux new -s |
| create session from tmux | :new -s |
| list sessions from CLI | $ tmux ls |
| list sessions from tmux | Prefix + s |
| attach session from CLI | $ tmux a -t |
| detach session | Prefix + d |