name: tmux-remote description: Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output. metadata: {"clawdbot":{"emoji":"🧵","os":["darwin","linux"],"requires":{"bins":["tmux"]}}}
tmux
Remote-control tmux sessions for interactive CLIs.
Basics
List sessions:
tmux lsAttach to session:
tmux attach -t session-nameCreate new session:
tmux new -s session-namePanes and Windows
Split pane (vertical):
tmux split-pane -vSplit pane (horizontal):
tmux split-pane -hNew window:
tmux new-windowSwitch pane:
tmux select-pane -[U|D|L|R]Keybindings
Prefix: Ctrl-b
c- Create new windown- Next windowp- Previous windoww- List windowsd- Detach%- Split pane horizontally"- Split pane verticallyo- Cycle panesarrow keys- Navigate panes?- List keybindings:- Command prompt
Commands
Execute command in pane:
tmux send-keys -t session-name:window.pane "command" EnterCapture pane output:
tmux capture-pane -t session-name:window.pane -pKill pane:
tmux kill-pane -t session-name:window.pane