Skip to main content

Module tmux

Module tmux 

Source
Expand description

Tmux session and pane orchestration.

Checks tmux availability, creates sessions, splits panes, sends commands, applies layouts, and manages attach/reattach. Uses a builder pattern for testability and dry-run support.

Structs§

PaneSpec
Specification for a single pane: which branch/worktree to cd into and which CLI to run.
TmuxCommand
A single tmux CLI invocation, stored as its argument list.
TmuxSession
A fully-resolved tmux session ready to execute or inspect.
TmuxSessionBuilder
Builder that accumulates tmux operations for creating and configuring a session.

Functions§

attach
Attach the current terminal to the named tmux session.
ensure_tmux_installed
Check that tmux is installed on PATH.
is_session_alive
Check whether a tmux session with the given name is currently alive.
kill_session
Kill the named tmux session.
resolve_session_name
Resolve a unique session name, handling collisions with existing sessions.