tmux-sender

Send commands from one tmux pane to another for execution.

1|2|Updated Jul 5, 2024
One-click install
npx skills add https://github.com/uuta/dotfiles --skill tmux-sender
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux-sender
Source: https://github.com/uuta/dotfiles/tree/main/skills/tmux-sender
Command: npx skills add https://github.com/uuta/dotfiles --skill tmux-sender

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

tmux panes require manual, multi-step input to run commands across panes. This skill enables sending a command directly to a target pane for immediate execution, reducing context switching.

Core Features & Use Cases

  • Send keys to a specified tmux pane and execute the command, enabling automated pane workflows.
  • Ideal for scripting multi-pane setups, rapid development sessions, and remote session automation.

Quick Start

tmux send-keys -t <pane-number> '<command>' Enter Example: tmux send-keys -t 1 'ls -la' Enter

Frequently Asked Questions about tmux-sender

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send commands to another tmux pane for execution?

You can send commands to another tmux pane by using the send-keys operation to target a specific pane number and pass the command string for immediate execution. This automates pane interactions and reduces manual context switching.

Can I automate multi-pane scripting workflows in tmux?

Yes, automating multi-pane scripting in tmux is achieved by sending keys to specified panes to execute commands. This is ideal for rapid development sessions and remote session management without manual input.

What is the best way to run a command in a remote tmux session automatically?

The best way to run a command automatically in a remote tmux session is using send-keys to target the desired pane and trigger execution. This eliminates multi-step manual input across remote panes.

Do I need Bash to execute send-keys operations in tmux?

Yes, you need Bash for execution and tmux to enable targeted send-keys operations. These prerequisites allow you to deliver commands directly to a target pane and execute them instantly.

Why does my tmux send-keys command require a target pane number?

The tmux send-keys command requires a target pane number to identify exactly which pane receives the command string for execution. This targeted approach ensures commands are delivered to the correct pane in multi-pane setups.