tmux | Start new session |
tmux new -s name | New named session |
tmux ls | List sessions |
tmux attach -t name | Attach to session |
tmux kill-session -t name | Kill session |
| Ctrl+b d | Detach from session |
| Ctrl+b s | List sessions |
| Ctrl+b $ | Rename session |
| Ctrl+b c | Create window |
| Ctrl+b , | Rename window |
| Ctrl+b & | Close window |
| Ctrl+b n | Next window |
| Ctrl+b p | Previous window |
| Ctrl+b 0-9 | Go to window N |
| Ctrl+b w | List windows |
| Ctrl+b % | Split vertical |
| Ctrl+b " | Split horizontal |
| Ctrl+b x | Close pane |
| Ctrl+b o | Next pane |
| Ctrl+b Arrow | Move to pane |
| Ctrl+b z | Toggle zoom |
| Ctrl+b Space | Toggle layouts |
| Ctrl+b [ | Enter copy mode |
| q | Exit copy mode |
| Space | Start selection |
| Enter | Copy selection |
| Ctrl+b ] | Paste |
# Mouse support
set -g mouse on
# Start windows at 1
set -g base-index 1
# History
set -g history-limit 10000
# 256 colors
set -g default-terminal "screen-256color"
# Reload config
bind r source-file ~/.tmux.conf