showtmuxpane

Send commands to tmux panes and capture pane output with line counts.

4|Updated Mar 20, 2023
One-click install
npx skills add https://github.com/iblea/.dotfiles --skill showtmuxpane
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: showtmuxpane
Source: https://github.com/iblea/.dotfiles/tree/main/prompt/skills/showtmuxpane
Command: npx skills add https://github.com/iblea/.dotfiles --skill showtmuxpane

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill allows you to interact with and view the output of your tmux environment, making it easier to manage and analyze your terminal sessions.

Core Features & Use Cases

  • Tmux Environment Detection: Automatically checks if you are operating within a tmux session.
  • Pane Content Viewing: Captures and displays the content of specified tmux panes, with options to show recent lines.
  • Interactive Session Control: Enables sending commands to tmux panes for interactive CLI tools.
  • Use Case: Debugging an application running in a specific tmux window by viewing its logs and then sending commands to restart the service.

Quick Start

Display the last 10 lines of output from tmux window 2.

Frequently Asked Questions about showtmuxpane

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

FAQPage Schema
How do I capture output from a specific tmux pane for debugging?

To capture output from a tmux pane for debugging, the skill retrieves content from specified panes with configurable tail or head line counts, allowing you to isolate recent logs or command output for analysis.

Can I send commands to an interactive CLI tool running inside a tmux session?

Yes, you can send commands to interactive CLI tools within tmux sessions. The skill uses send-keys to interact with and control panes, enabling you to manage interactive processes like restarting a service.

Do I need an active tmux environment to view pane content?

Yes, an active tmux environment is required. The skill includes automatic tmux environment detection and needs a running session to capture pane content and send commands via send-keys.

How do I view the last 10 lines of output in a tmux window?

You can view the last 10 lines of output by configuring the tail line count parameter. The skill captures pane content and displays the specified number of recent lines from the target tmux window.

What is the best way to manage and analyze terminal sessions in tmux?

The best way to manage terminal sessions in tmux is by capturing pane content and sending commands via send-keys. This allows you to view logs, interact with CLI tools, and debug applications running in specific windows.