Tmux Configuration¶
Overview¶
Tmux (Terminal Multiplexer) configuration for session management, window handling, and pane control.
I started with a sane tmux config from github and my tmux module in my dotfiles has some customization built into .tmux.conf.local
Installation¶
Files: ~/.tmux.conf and ~/.tmux.conf.local
Key Bindings¶
Prefix: Ctrl+b
| Shortcut | Action |
|---|---|
Ctrl+b c |
New window |
Ctrl+b n/p |
Next/Previous window |
Ctrl+b % |
Vertical split |
Ctrl+b " |
Horizontal split |
Ctrl+b z |
Zoom pane (toggle fullscreen) |
Ctrl+b d |
Detach session |
Ctrl+b [ |
Copy mode |
Ctrl+b x |
Kill pane |
Ctrl+b & |
Kill window |
Color Themes¶
The config includes several Nord-based color themes. Edit ~/.tmux.conf.local:
# Blue theme (default)
tmux_conf_theme_colour_primary="#5e81ac"
# Yellow/Gold theme
tmux_conf_theme_colour_primary="#ebcb8b"
# Purple/Pink theme
tmux_conf_theme_colour_primary="#b48ead"
# Production warning - Red
tmux_conf_theme_colour_primary="#bf616a"
Session Management¶
# New session
tmux new -s myproject
# List sessions
tmux ls
# Attach to session
tmux attach -t myproject
# Kill session
tmux kill-session -t myproject
Related¶
- Workspaces - Tmux + git-worktrees integration
- Neovim - Editor