Workspace ManagerconceptConfiguration

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

Edit this page on GitHub

Session configuration

Needs the Workspace Manager for C++ concept Install

workspace consumer 0.1.0 · Source

Set session_name and an ordered, nonempty windows list. Use a simple name without tmux target separators such as : and ..

session.yaml
session_name: session-example
environment:
PROJECT_MODE: development
options:
status: false
windows:
- window_name: shell
panes: [null]

Session fields

FieldEffect
session_nameSession to create or reuse
windowsWindows to construct in order
start_directoryStarting directory inherited by child configuration
environmentVariables supplied to the workspace
optionsOptions applied to this session
global_optionsOptions applied globally on the selected tmux server
shell_command_beforeCommands prepended to each pane’s commands
suppress_historyHistory policy inherited by windows and panes
before_scriptChecked bootstrap process
workspace_builder_optionsBuilder settings such as prompt readiness

Use global_options only when every session on that server should share the change. Select a private socket for examples and automated jobs.

An existing session is reused under the loader’s policy. Use load -s NAME when a second copy needs another name. Loading does not remove unrelated sessions or reconcile away extra windows.

Read environment, commands and hooks for the behavior behind those fields.

CLI source.

Esc
Search in

Type to search.

Reference previewOpen reference