Loading...
Loading...
Complete tmux terminal multiplexer management: sessions, windows, panes, layouts, scripting, and configuration. Auto-activates on: "tmux", "session", "window", "pane", "split", "attach", "detach", "multiplexer".
npx skill4agent add bntvllnt/agent-skills tmux┌─────────────────────────────────────────────────────────────┐
│ SERVER (one per socket) │
│ ┌───────────────────────────────────────────────────────┐ │
│ │ SESSION ($0, $1, ...) │ │
│ │ ┌─────────────────┐ ┌─────────────────┐ │ │
│ │ │ WINDOW (@0) │ │ WINDOW (@1) │ ... │ │
│ │ │ ┌────┬────┐ │ │ ┌────────────┐ │ │ │
│ │ │ │PANE│PANE│ │ │ │ PANE │ │ │ │
│ │ │ │ %0 │ %1 │ │ │ │ %2 │ │ │ │
│ │ │ └────┴────┘ │ │ └────────────┘ │ │ │
│ │ └─────────────────┘ └─────────────────┘ │ │
│ └───────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘$id@id%id| User says | Load reference | Do |
|---|---|---|
| list sessions / status | | inspect sessions |
| new session / create session | | create session |
| attach / detach | | attach/detach |
| kill session | | terminate session |
| new window / create window | | create window |
| rename window | | rename window |
| kill window / close window | | close window |
| switch window | | navigate windows |
| split / new pane | | split pane |
| resize pane | | resize pane |
| move pane / swap pane | | rearrange panes |
| kill pane / close pane | | close pane |
| layout | | apply/manage layouts |
| copy / paste / buffer | | copy mode operations |
| config / tmux.conf / settings | | configure tmux |
| keybind / bind / unbind | | key bindings |
| script / automate / send-keys | | scripting/automation |
| capture / log / output | | capture pane content |
| help / keys / cheatsheet | inline | show key reference |
C-b| Key | Action |
|---|---|
| Detach from session |
| List/switch sessions |
| Rename session |
| Previous/next session |
| Key | Action |
|---|---|
| Create window |
| Kill window (confirm) |
| Rename window |
| Switch to window N |
| Next/previous window |
| Last window |
| List windows |
| Find window |
| Key | Action |
|---|---|
| Split horizontally (left/right) |
| Split vertically (top/bottom) |
| Kill pane (confirm) |
| Cycle panes |
| Show pane numbers |
| Toggle zoom |
| Swap pane left/right |
| Break pane to window |
| Arrows | Navigate panes |
| Cycle layouts |
| Rotate panes |
| Key | Action |
|---|---|
| Enter copy mode |
| Paste buffer |
| Choose paste buffer |
| List buffers |
# Session
tmux new -s name # Create named session
tmux attach -t name # Attach to session
tmux ls # List sessions
tmux kill-session -t name # Kill session
# Window
tmux new-window -n name # Create named window
tmux select-window -t :N # Go to window N
tmux rename-window name # Rename current window
# Pane
tmux split-window -h # Split horizontal
tmux split-window -v # Split vertical
tmux select-pane -t :.N # Go to pane N
tmux resize-pane -D 5 # Resize down 5 lines
# Info
tmux list-keys # All key bindings
tmux info # Server infokill-sessionkill-windowkill-pane~/.tmux.conftmux lslist-sessionslist-windowslist-panestmux infoshow-optionsdisplay-messagetmux list-keyslist-bufferskill-sessionkill-windowkill-panekill-server~/.tmux.confsend-keys| Variable | Description |
|---|---|
| Socket path (set inside tmux) |
| Current pane ID |
[ -n "$TMUX" ]| Issue | Solution |
|---|---|
| "no server running" | Start with |
| "sessions should be nested" | Unset |
| Detached session lost | Check |
| Colors not working | Set |
| Mouse not working | |