🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Tmux Remote

by @164149043

Automation skill for Tmux Remote.

Versionv1.0.0
Downloads759
TERMINAL
clawhub install tmux-remote

πŸ“– About This Skill


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 ls

Attach to session:

tmux attach -t session-name

Create new session:

tmux new -s session-name

Panes and Windows

Split pane (vertical):

tmux split-pane -v

Split pane (horizontal):

tmux split-pane -h

New window:

tmux new-window

Switch pane:

tmux select-pane -[U|D|L|R]

Keybindings

Prefix: Ctrl-b

  • c - Create new window
  • n - Next window
  • p - Previous window
  • w - List windows
  • d - Detach
  • % - Split pane horizontally
  • " - Split pane vertically
  • o - Cycle panes
  • arrow keys - Navigate panes
  • ? - List keybindings
  • : - Command prompt
  • Commands

    Execute command in pane:

    tmux send-keys -t session-name:window.pane "command" Enter
    

    Capture pane output:

    tmux capture-pane -t session-name:window.pane -p
    

    Kill pane:

    tmux kill-pane -t session-name:window.pane