| name | tmux |
| description | Remote-control tmux sessions for background tasks and persistent processes |
| requires | {"bins":["tmux"]} |
tmux Session Control
Creating Sessions
tmux new-session -d -s mywork "long-running-command"
tmux new-session -d -s scratch
Reading Output
tmux capture-pane -t mywork -p
tmux capture-pane -t mywork -p -S -1000
Sending Input
tmux send-keys -t mywork 'ls -la' Enter
tmux send-keys -t mywork C-c
Session Management
tmux list-sessions
tmux kill-session -t mywork
tmux has-session -t mywork 2>/dev/null && echo "exists" || echo "gone"
Window & Pane Control
tmux split-window -h -t mywork
tmux split-window -v -t mywork
tmux select-pane -t mywork.1
tmux new-window -t mywork -n logs
Patterns
- Use tmux for any command that might take more than a few seconds — it lets you check progress without blocking.
- Name sessions descriptively so you can manage multiple concurrent tasks.
- Always check
tmux list-sessions before creating new ones to avoid duplicates.
- Use
tmux capture-pane to read output rather than running commands synchronously when you want non-blocking status checks.