Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python workspace topics

Python
  • Python
  • Ruby
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

Edit this page on GitHub

tmuxp 1.74.0 · Source

Use tmuxp load to turn a YAML or JSON configuration into a tmux session. The configuration controls its windows, panes, directories, and commands.

Configuration and commandsLink to section

A workspace names a session and contains windows with panes. Pane shorthand can name a command directly, while mappings describe command lists, working directories, focus, and other configuration. The loader expands environment variables and resolves relative paths using the workspace location.

shell_command_before supplies setup commands inherited by the relevant panes. Commands, scripts, plugins, and custom builders execute code in your runtime. Use workspace files whose commands and extension imports you intend to run. Successful construction does not mean a launched application has completed startup; its own readiness check is a separate task.

Existing sessionsLink to section

tmuxp load handles attachment and switching as part of its CLI workflow. It can attach to an existing named session, and its append mode adds windows to the current session. Those choices differ from replacing a session or converging a description automatically. Read the load command’s prompts and options before automating an existing-session workflow.

Export a sessionLink to section

tmuxp freeze writes the structure of a running session as YAML or JSON. It recovers current layouts and working directories, and uses observable current programs when forming commands. It cannot recover the original command line, process memory, or a complete application checkpoint. Review its output before relying on it as a launcher.

See the upstream workspace configuration for supported fields. Contributor details about the loader and custom builders belong in Internals.

Expansion implementation; Freeze implementation.

Esc

Type to search.