How I use TMUX
Terminology: Sessions, Windows, and Panes
| Term | Description |
|---|---|
| Session | A collection of terminal windows managed by tmux. It can contain multiple windows and persists even if disconnected. |
| Window | A single terminal view within a session. Each window can host multiple panes. |
| Pane | A split section of a window that runs its own terminal instance. Panes allow for multitasking within a single window. |
References
Part of the [[10 minute devops]] series
- What is TMUX
- Minimal config
- keybinds
- vim-tmux keybindings
- selection of text
- status bar
- how [chezmoi](How I manage dotfiles) controls optional parts of status
- keybinds
- Mostly single
PaneprerWindow - Sometimes split vertically
Workflow
- ZSH config automatically starts TMUX
- Open
Windowsto work in, depending on the task I might use 1, 2, or all 3 of these:- Terminal
Windowrunningzsh - Editor
Windowrunningnvim - AI Agent
Windowrunningopencode
- Terminal
- I use the terminal window to run tests,
terraform,ansible, etc - How I use zsh - I use the neovim window for editing source, config, etc - How I use NeoVIM
- I use opencode for planning and automating some development work - How I use OpenCode
- Common
keybinds,prefixisctrl-a, followed by:c- create newWindown- go to nextWindowp- go to previousWindowctrl-aora- toggle to last usedWindow