tmux workspace manager, forged in PowerShell.
Session manager for tmux. Load and convert tmux sessions through YAML/JSON configuration files. Powered by libtmux for PowerShell.
Explore tmux layout / workspace possibilities
session_name: shorthandswindows: - window_name: long form panes: - shell_command: - echo 'did you know' - echo 'you can inline' - shell_command: echo 'single commands' - echo 'for panes'{ "session_name": "shorthands", "windows": [ { "window_name": "long form", "panes": [ { "shell_command": [ "echo 'did you know'", "echo 'you can inline'" ] }, { "shell_command": "echo 'single commands'" }, "echo 'for panes'" ] } ]}session_name: 2-pane-verticalwindows: - window_name: my test window panes: - echo hello - echo hello{ "session_name": "2-pane-vertical", "windows": [ { "window_name": "my test window", "panes": [ "echo hello", "echo hello" ] } ]}session_name: 3-paneswindows: - window_name: dev window layout: main-vertical shell_command_before: - cd ~/ panes: - shell_command: - cd /var/log - ls -al | grep \.log - echo hello - echo hello{ "session_name": "3-panes", "windows": [ { "window_name": "dev window", "layout": "main-vertical", "shell_command_before": [ "cd ~/" ], "panes": [ { "shell_command": [ "cd /var/log", "ls -al | grep \\.log" ] }, "echo hello", "echo hello" ] } ]}session_name: 4-pane-splitwindows: - window_name: dev window layout: tiled shell_command_before: - cd ~/ panes: - shell_command: - cd /var/log - ls -al | grep \.log - echo hello - echo hello - echo hello{ "session_name": "4-pane-split", "windows": [ { "window_name": "dev window", "layout": "tiled", "shell_command_before": [ "cd ~/" ], "panes": [ { "shell_command": [ "cd /var/log", "ls -al | grep \\.log" ] }, "echo hello", "echo hello", "echo hello" ] } ]}session_name: test window optionsstart_directory: '~'windows:- layout: main-horizontal options: main-pane-height: 5 panes: - pane - pane - pane window_name: editor{ "session_name": "test window options", "start_directory": "~", "windows": [ { "layout": "main-horizontal", "options": { "main-pane-height": 5 }, "panes": [ "pane", "pane", "pane" ], "window_name": "editor" } ]}session_name: corpusstart_directory: ${PROJECT_ROOT}options: default-command: exec /bin/sh '@corpus-session': yaml-originalenvironment: CORPUS_SESSION: yaml-root CORPUS_LAYER: sessionshell_command_before: - cmd: echo session >> order.txtwindows: - window_name: yaml-editor start_directory: window layout: even-horizontal focus: true options: '@corpus-window': '${OPTION_TAG}' environment: CORPUS_WINDOW: yaml-window CORPUS_LAYER: window shell_command_before: - cmd: echo window >> order.txt panes: - shell_command: - cmd: echo command >> order.txt - 'echo "$CORPUS_SESSION|$CORPUS_WINDOW|$CORPUS_PANE|$CORPUS_LAYER" > environment.txt' - tmux wait-for -S corpus-yaml-first - start_directory: pane focus: true options: '@corpus-pane': yaml environment: CORPUS_PANE: yaml-pane CORPUS_LAYER: pane shell_command_before: - cmd: echo pane >> order.txt shell_command: - echo command >> order.txt - 'echo "$CORPUS_SESSION|$CORPUS_WINDOW|$CORPUS_PANE|$CORPUS_LAYER" > environment.txt' - tmux wait-for -S corpus-yaml-second{ "session_name": "corpus", "start_directory": "${PROJECT_ROOT}", "options": { "default-command": "exec /bin/sh", "@corpus-session": "yaml-original" }, "environment": { "CORPUS_SESSION": "yaml-root", "CORPUS_LAYER": "session" }, "shell_command_before": [ { "cmd": "echo session >> order.txt" } ], "windows": [ { "window_name": "yaml-editor", "start_directory": "window", "layout": "even-horizontal", "focus": true, "options": { "@corpus-window": "${OPTION_TAG}" }, "environment": { "CORPUS_WINDOW": "yaml-window", "CORPUS_LAYER": "window" }, "shell_command_before": [ { "cmd": "echo window >> order.txt" } ], "panes": [ { "shell_command": [ { "cmd": "echo command >> order.txt" }, "echo \"$CORPUS_SESSION|$CORPUS_WINDOW|$CORPUS_PANE|$CORPUS_LAYER\" > environment.txt", "tmux wait-for -S corpus-yaml-first" ] }, { "start_directory": "pane", "focus": true, "options": { "@corpus-pane": "yaml" }, "environment": { "CORPUS_PANE": "yaml-pane", "CORPUS_LAYER": "pane" }, "shell_command_before": [ { "cmd": "echo pane >> order.txt" } ], "shell_command": [ "echo command >> order.txt", "echo \"$CORPUS_SESSION|$CORPUS_WINDOW|$CORPUS_PANE|$CORPUS_LAYER\" > environment.txt", "tmux wait-for -S corpus-yaml-second" ] } ] } ]}session_name: test env varsstart_directory: "~"environment: FOO: SESSION PATH: /tmpwindows:- window_name: no_overrides panes: - pane- window_name: window_overrides environment: FOO: WINDOW panes: - pane- window_name: pane_overrides panes: - environment: FOO: PANE- window_name: both_overrides environment: FOO: WINDOW panes: - pane - environment: FOO: PANE# This test case it just needed for warnings issued in old versions of tmux.- window_name: both_overrides_on_first_pane environment: FOO: WINDOW panes: - environment: FOO: PANE{ "session_name": "test env vars", "start_directory": "~", "environment": { "FOO": "SESSION", "PATH": "/tmp" }, "windows": [ { "window_name": "no_overrides", "panes": [ "pane" ] }, { "window_name": "window_overrides", "environment": { "FOO": "WINDOW" }, "panes": [ "pane" ] }, { "window_name": "pane_overrides", "panes": [ { "environment": { "FOO": "PANE" } } ] }, { "window_name": "both_overrides", "environment": { "FOO": "WINDOW" }, "panes": [ "pane", { "environment": { "FOO": "PANE" } } ] }, { "window_name": "both_overrides_on_first_pane", "environment": { "FOO": "WINDOW" }, "panes": [ { "environment": { "FOO": "PANE" } } ] } ]}session_name: sample workspacewindows: - panes: - start_directory: /usr - start_directory: /etc{ "session_name": "sample workspace", "windows": [ { "panes": [ { "start_directory": "/usr" }, { "start_directory": "/etc" } ] } ]}session_name: 2-pane-synchronizedwindows: - window_name: Two synchronized panes panes: - ssh server1 - ssh server2 options_after: synchronize-panes: on{ "session_name": "2-pane-synchronized", "windows": [ { "window_name": "Two synchronized panes", "panes": [ "ssh server1", "ssh server2" ], "options_after": { "synchronize-panes": "on" } } ]}session_name: main-pane-heightstart_directory: "~"windows: - layout: main-horizontal options: main-pane-height: 67% panes: - shell_command: - top start_directory: "~" - shell_command: - echo "hey" - shell_command: - echo "moo" window_name: my window name{ "session_name": "main-pane-height", "start_directory": "~", "windows": [ { "layout": "main-horizontal", "options": { "main-pane-height": "67%" }, "panes": [ { "shell_command": [ "top" ], "start_directory": "~" }, { "shell_command": [ "echo \"hey\"" ] }, { "shell_command": [ "echo \"moo\"" ] } ], "window_name": "my window name" } ]}session_name: My tmux sessionwindows: - panes: -{ "session_name": "My tmux session", "windows": [ { "panes": [ null ] } ]}session_name: test window optionsstart_directory: "~"global_options: default-shell: /bin/sh default-command: /bin/shoptions: main-pane-height: ${MAIN_PANE_HEIGHT} # works with env variableswindows: - layout: main-horizontal options: automatic-rename: on panes: - shell_command: - man echo start_directory: "~" - shell_command: - echo "hey" - shell_command: - echo "moo"{ "session_name": "test window options", "start_directory": "~", "global_options": { "default-shell": "/bin/sh", "default-command": "/bin/sh" }, "options": { "main-pane-height": "${MAIN_PANE_HEIGHT}" }, "windows": [ { "layout": "main-horizontal", "options": { "automatic-rename": "on" }, "panes": [ { "shell_command": [ "man echo" ], "start_directory": "~" }, { "shell_command": [ "echo \"hey\"" ] }, { "shell_command": [ "echo \"moo\"" ] } ] } ]}session_name: Skip command execution (command-level)windows: - panes: - shell_command: # You can see this - echo "___$((11 + 1))___" # This is skipped - cmd: echo "___$((1 + 3))___" enter: false{ "session_name": "Skip command execution (command-level)", "windows": [ { "panes": [ { "shell_command": [ "echo \"___$((11 + 1))___\"", { "cmd": "echo \"___$((1 + 3))___\"", "enter": false } ] } ] } ]}session_name: Skip command execution (pane-level)windows: - panes: - shell_command: echo "___$((1 + 3))___" enter: false - shell_command: - echo "___$((1 + 3))___"\; - echo "___$((1 + 3))___" enter: false{ "session_name": "Skip command execution (pane-level)", "windows": [ { "panes": [ { "shell_command": "echo \"___$((1 + 3))___\"", "enter": false }, { "shell_command": [ "echo \"___$((1 + 3))___\"\\;", "echo \"___$((1 + 3))___\"" ], "enter": false } ] } ]}session_name: Window index examplewindows: - window_name: zero panes: - echo "this window's index will be zero" - window_name: five panes: - echo "this window's index will be five" window_index: 5 - window_name: one panes: - echo "this window's index will be one"{ "session_name": "Window index example", "windows": [ { "window_name": "zero", "panes": [ "echo \"this window's index will be zero\"" ] }, { "window_name": "five", "panes": [ "echo \"this window's index will be five\"" ], "window_index": 5 }, { "window_name": "one", "panes": [ "echo \"this window's index will be one\"" ] } ]}Install
Install the workspace package separately from the core library.
PS> Install-Module -Name LibTmux.WorkspacePS> Install-PSResource -Name LibTmux.WorkspaceInstalls the matching LibTmux core dependency. Run PowerShell and tmux on the same Unix host.
Installs the matching LibTmux core dependency. Run PowerShell and tmux on the same Unix host.
LibTmux.Workspace provides PowerShell commands for reading, validating,
planning and applying workspace configuration. The module uses LibTmux
for tmux objects and operations.
Install the module with the commands below, then follow the workspace guide to inspect a plan before applying it. The command reference lists every exported workspace command and its parameter sets.
The PowerShell Gallery package also provides Azure Automation and manual download options. Manual downloads require you to install the package dependencies separately.
Example workspaces
Each workspace below is a file that libtmux/libtmux-powershell
loads in a test or a scheduled run, as the list under it says. The drawing shows the panes of each window and the commands each pane receives.
Short-hand panes
A pane can be one command written as a string, and a command list can be one string.
session_name: shorthandswindows: - window_name: long form panes: - shell_command: - echo 'did you know' - echo 'you can inline' - shell_command: echo 'single commands' - echo 'for panes'{ "session_name": "shorthands", "windows": [ { "window_name": "long form", "panes": [ { "shell_command": [ "echo 'did you know'", "echo 'you can inline'" ] }, { "shell_command": "echo 'single commands'" }, "echo 'for panes'" ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/shorthands.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-shorthands.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)
Two panes
A window of two panes.
session_name: 2-pane-verticalwindows: - window_name: my test window panes: - echo hello - echo hello{ "session_name": "2-pane-vertical", "windows": [ { "window_name": "my test window", "panes": [ "echo hello", "echo hello" ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/2-pane-vertical.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-2-pane-vertical.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)
Three panes
A window of three panes.
Also shows: setup before each pane
session_name: 3-paneswindows: - window_name: dev window layout: main-vertical shell_command_before: - cd ~/ panes: - shell_command: - cd /var/log - ls -al | grep \.log - echo hello - echo hello{ "session_name": "3-panes", "windows": [ { "window_name": "dev window", "layout": "main-vertical", "shell_command_before": [ "cd ~/" ], "panes": [ { "shell_command": [ "cd /var/log", "ls -al | grep \\.log" ] }, "echo hello", "echo hello" ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/3-pane.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-3-pane.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)
Four panes
A window of four panes.
Also shows: tiled layout
session_name: 4-pane-splitwindows: - window_name: dev window layout: tiled shell_command_before: - cd ~/ panes: - shell_command: - cd /var/log - ls -al | grep \.log - echo hello - echo hello - echo hello{ "session_name": "4-pane-split", "windows": [ { "window_name": "dev window", "layout": "tiled", "shell_command_before": [ "cd ~/" ], "panes": [ { "shell_command": [ "cd /var/log", "ls -al | grep \\.log" ] }, "echo hello", "echo hello", "echo hello" ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/4-pane.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-4-pane.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)
Main-horizontal layout
The main-horizontal layout gives the first pane the top of the window and splits the rest below it.
Also shows: three panes
session_name: test window optionsstart_directory: '~'windows:- layout: main-horizontal options: main-pane-height: 5 panes: - pane - pane - pane window_name: editor{ "session_name": "test window options", "start_directory": "~", "windows": [ { "layout": "main-horizontal", "options": { "main-pane-height": 5 }, "panes": [ "pane", "pane", "pane" ], "window_name": "editor" } ]}Converted from the YAML; the tests load the YAML.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-window_options.yaml
Loaded by:
-
window options fixture: Runs the workspace cmdlets Import-TmuxWorkspace, Resolve-TmuxWorkspace, Get-TmuxWorkspacePlan and Invoke-TmuxWorkspace on the file against real tmux and checks the layout, the main-pane-height option and each pane's directory. (tests/WorkspaceCorpus.Tests.ps1; a test runs the command)
Setup before each pane
shell_command_before runs ahead of a pane's own commands, at the session, window or pane level.
Also shows: environment, start directory, two panes
session_name: corpusstart_directory: ${PROJECT_ROOT}options: default-command: exec /bin/sh '@corpus-session': yaml-originalenvironment: CORPUS_SESSION: yaml-root CORPUS_LAYER: sessionshell_command_before: - cmd: echo session >> order.txtwindows: - window_name: yaml-editor start_directory: window layout: even-horizontal focus: true options: '@corpus-window': '${OPTION_TAG}' environment: CORPUS_WINDOW: yaml-window CORPUS_LAYER: window shell_command_before: - cmd: echo window >> order.txt panes: - shell_command: - cmd: echo command >> order.txt - 'echo "$CORPUS_SESSION|$CORPUS_WINDOW|$CORPUS_PANE|$CORPUS_LAYER" > environment.txt' - tmux wait-for -S corpus-yaml-first - start_directory: pane focus: true options: '@corpus-pane': yaml environment: CORPUS_PANE: yaml-pane CORPUS_LAYER: pane shell_command_before: - cmd: echo pane >> order.txt shell_command: - echo command >> order.txt - 'echo "$CORPUS_SESSION|$CORPUS_WINDOW|$CORPUS_PANE|$CORPUS_LAYER" > environment.txt' - tmux wait-for -S corpus-yaml-second{ "session_name": "corpus", "start_directory": "${PROJECT_ROOT}", "options": { "default-command": "exec /bin/sh", "@corpus-session": "yaml-original" }, "environment": { "CORPUS_SESSION": "yaml-root", "CORPUS_LAYER": "session" }, "shell_command_before": [ { "cmd": "echo session >> order.txt" } ], "windows": [ { "window_name": "yaml-editor", "start_directory": "window", "layout": "even-horizontal", "focus": true, "options": { "@corpus-window": "${OPTION_TAG}" }, "environment": { "CORPUS_WINDOW": "yaml-window", "CORPUS_LAYER": "window" }, "shell_command_before": [ { "cmd": "echo window >> order.txt" } ], "panes": [ { "shell_command": [ { "cmd": "echo command >> order.txt" }, "echo \"$CORPUS_SESSION|$CORPUS_WINDOW|$CORPUS_PANE|$CORPUS_LAYER\" > environment.txt", "tmux wait-for -S corpus-yaml-first" ] }, { "start_directory": "pane", "focus": true, "options": { "@corpus-pane": "yaml" }, "environment": { "CORPUS_PANE": "yaml-pane", "CORPUS_LAYER": "pane" }, "shell_command_before": [ { "cmd": "echo pane >> order.txt" } ], "shell_command": [ "echo command >> order.txt", "echo \"$CORPUS_SESSION|$CORPUS_WINDOW|$CORPUS_PANE|$CORPUS_LAYER\" > environment.txt", "tmux wait-for -S corpus-yaml-second" ] } ] } ]}Converted from the YAML; the tests load the YAML.
${PROJECT_ROOT} and ${OPTION_TAG} are variables the loader expands.
Source: tests/fixtures/workspace/corpus.yaml
Loaded by:
-
corpus fixture: Runs the workspace cmdlets Import-TmuxWorkspace, Resolve-TmuxWorkspace, Get-TmuxWorkspacePlan and Invoke-TmuxWorkspace on the file against real tmux and checks the order of the commands, the environment each pane sees and each pane's directory. (tests/WorkspaceCorpus.Tests.ps1; a test runs the command)
Environment
environment sets variables for a session, a window or a pane.
session_name: test env varsstart_directory: "~"environment: FOO: SESSION PATH: /tmpwindows:- window_name: no_overrides panes: - pane- window_name: window_overrides environment: FOO: WINDOW panes: - pane- window_name: pane_overrides panes: - environment: FOO: PANE- window_name: both_overrides environment: FOO: WINDOW panes: - pane - environment: FOO: PANE# This test case it just needed for warnings issued in old versions of tmux.- window_name: both_overrides_on_first_pane environment: FOO: WINDOW panes: - environment: FOO: PANE{ "session_name": "test env vars", "start_directory": "~", "environment": { "FOO": "SESSION", "PATH": "/tmp" }, "windows": [ { "window_name": "no_overrides", "panes": [ "pane" ] }, { "window_name": "window_overrides", "environment": { "FOO": "WINDOW" }, "panes": [ "pane" ] }, { "window_name": "pane_overrides", "panes": [ { "environment": { "FOO": "PANE" } } ] }, { "window_name": "both_overrides", "environment": { "FOO": "WINDOW" }, "panes": [ "pane", { "environment": { "FOO": "PANE" } } ] }, { "window_name": "both_overrides_on_first_pane", "environment": { "FOO": "WINDOW" }, "panes": [ { "environment": { "FOO": "PANE" } } ] } ]}Converted from the YAML; the tests load the YAML.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-environment_vars.yaml
Loaded by:
-
environment variables fixture: Runs the workspace cmdlets Import-TmuxWorkspace, Resolve-TmuxWorkspace, Get-TmuxWorkspacePlan and Invoke-TmuxWorkspace on the file against real tmux and checks the session environment and the value each pane prints. (tests/WorkspaceCorpus.Tests.ps1; a test runs the command)
Start directory
start_directory chooses where a session, a window or a pane starts.
Also shows: two panes
session_name: sample workspacewindows: - panes: - start_directory: /usr - start_directory: /etc{ "session_name": "sample workspace", "windows": [ { "panes": [ { "start_directory": "/usr" }, { "start_directory": "/etc" } ] } ]}Converted from the YAML; the tests load the YAML.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-first_pane_start_directory.yaml
Loaded by:
-
first pane start directory fixture: Runs the workspace cmdlets Import-TmuxWorkspace, Get-TmuxWorkspacePlan and Invoke-TmuxWorkspace on the file against real tmux, resolving it with the document's Resolve method, and checks the directory of each pane. (tests/WorkspaceCorpus.Tests.ps1; a test runs the command)
Synchronized panes
options_after sets synchronize-panes once the panes exist, so typing in one pane reaches the others.
session_name: 2-pane-synchronizedwindows: - window_name: Two synchronized panes panes: - ssh server1 - ssh server2 options_after: synchronize-panes: on{ "session_name": "2-pane-synchronized", "windows": [ { "window_name": "Two synchronized panes", "panes": [ "ssh server1", "ssh server2" ], "options_after": { "synchronize-panes": "on" } } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/2-pane-synchronized.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-2-pane-synchronized.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)
Main pane height as a percentage
main-pane-height takes a percentage of the window as well as a row count.
Also shows: three panes, main-horizontal layout, start directory
session_name: main-pane-heightstart_directory: "~"windows: - layout: main-horizontal options: main-pane-height: 67% panes: - shell_command: - top start_directory: "~" - shell_command: - echo "hey" - shell_command: - echo "moo" window_name: my window name{ "session_name": "main-pane-height", "start_directory": "~", "windows": [ { "layout": "main-horizontal", "options": { "main-pane-height": "67%" }, "panes": [ { "shell_command": [ "top" ], "start_directory": "~" }, { "shell_command": [ "echo \"hey\"" ] }, { "shell_command": [ "echo \"moo\"" ] } ], "window_name": "my window name" } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/main-pane-height-percentage.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-main-pane-height-percentage.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)
Minimal workspace
A session name and one window with one blank pane.
session_name: My tmux sessionwindows: - panes: -{ "session_name": "My tmux session", "windows": [ { "panes": [ null ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/minimal.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-minimal.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)
tmux options
global_options, options and a window's options set tmux options.
Also shows: main-horizontal layout, three panes, start directory
session_name: test window optionsstart_directory: "~"global_options: default-shell: /bin/sh default-command: /bin/shoptions: main-pane-height: ${MAIN_PANE_HEIGHT} # works with env variableswindows: - layout: main-horizontal options: automatic-rename: on panes: - shell_command: - man echo start_directory: "~" - shell_command: - echo "hey" - shell_command: - echo "moo"{ "session_name": "test window options", "start_directory": "~", "global_options": { "default-shell": "/bin/sh", "default-command": "/bin/sh" }, "options": { "main-pane-height": "${MAIN_PANE_HEIGHT}" }, "windows": [ { "layout": "main-horizontal", "options": { "automatic-rename": "on" }, "panes": [ { "shell_command": [ "man echo" ], "start_directory": "~" }, { "shell_command": [ "echo \"hey\"" ] }, { "shell_command": [ "echo \"moo\"" ] } ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/options.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-options.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)
Skip Enter for a command
enter: false types a command without running it.
session_name: Skip command execution (command-level)windows: - panes: - shell_command: # You can see this - echo "___$((11 + 1))___" # This is skipped - cmd: echo "___$((1 + 3))___" enter: false{ "session_name": "Skip command execution (command-level)", "windows": [ { "panes": [ { "shell_command": [ "echo \"___$((11 + 1))___\"", { "cmd": "echo \"___$((1 + 3))___\"", "enter": false } ] } ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/skip-send.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-skip-send.yaml
Loaded by:
-
skip-send fixture: Plans the file and its JSON twin with Get-TmuxWorkspacePlan and checks which commands are sent without Enter. Applies nothing. (tests/WorkspaceCorpus.Tests.ps1; built by the library in a test; the command is not run)
Skip Enter for a pane
enter: false on a pane types its commands without running them.
session_name: Skip command execution (pane-level)windows: - panes: - shell_command: echo "___$((1 + 3))___" enter: false - shell_command: - echo "___$((1 + 3))___"\; - echo "___$((1 + 3))___" enter: false{ "session_name": "Skip command execution (pane-level)", "windows": [ { "panes": [ { "shell_command": "echo \"___$((1 + 3))___\"", "enter": false }, { "shell_command": [ "echo \"___$((1 + 3))___\"\\;", "echo \"___$((1 + 3))___\"" ], "enter": false } ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/skip-send-pane-level.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-skip-send-pane-level.yaml
Loaded by:
-
skip-send pane-level fixture: Plans the file and its JSON twin with Get-TmuxWorkspacePlan and checks which commands are sent without Enter. Applies nothing. (tests/WorkspaceCorpus.Tests.ps1; built by the library in a test; the command is not run)
Window index
window_index places a window at an index; a window without one takes the lowest free index.
session_name: Window index examplewindows: - window_name: zero panes: - echo "this window's index will be zero" - window_name: five panes: - echo "this window's index will be five" window_index: 5 - window_name: one panes: - echo "this window's index will be one"{ "session_name": "Window index example", "windows": [ { "window_name": "zero", "panes": [ "echo \"this window's index will be zero\"" ] }, { "window_name": "five", "panes": [ "echo \"this window's index will be five\"" ], "window_index": 5 }, { "window_name": "one", "panes": [ "echo \"this window's index will be one\"" ] } ]}Converted from the YAML; the tests load the YAML.
Same file as tmuxp's examples/window-index.yaml.
Source: tests/fixtures/workspace/tmuxp-v1.74.0-window-index.yaml
Loaded by:
-
tmuxp example catalog: Imports the file with Import-TmuxWorkspace. Starts no tmux. (tests/WorkspaceFiles.Tests.ps1; loaded by the library in a test; the command is not run)