Workspace ManagerConfiguration

Choose documentation 3

latest

Current version

latest
English

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

Edit this page on GitHub

Session configuration

LibTmux.Workspace 0.0.0-alpha.20 · 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

Type to search.