Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Environmental variable inheritance #846

tony started this conversation in Ideas
Discussion options

A parent option, like pass_environment

tmuxp_options:
 pass_environment: true
session_name: a session

Where pass_environment can be set at any object level, and all descendants inside have the variables passed. Then, they can be opted out by setting pass_environment: false at a lower level.

tmuxp_options:
 pass_environment: true
environment:
 tippy: session variable
 toppy: session variable
windows:
 - panes:
 - shell_command:
 - echo "$TIPPY"
 - echo "$TOPPY"
 - tmuxp_options:
 pass_environment: false
 shell_command:
 - echo "$TIPPY"
 - echo "$TOPPY"
 - tmuxp_options:
 pass_environment: false
 panes:
 - shell_command:
 - echo "$TIPPY"
 - echo "$TOPPY"
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /