Skip to content

Environment variable not set when launching session from tmux #184

@k4nar

Description

@k4nar

Hello,
I have several tmuxp configuration files using environment to pass an env variable to the created session.
When I launch them from a terminal, the environment variables are set. But when I launch them from a running tmux session they are not.

Do you have idea what's causing this behavior?

Failing testcase

session_name: test
environment:
  FOO: bar
windows:
  - panes: ['env | grep FOO']

Running tmuxp load -y test.yml shows FOO=bar, whereas launching the same command from a tmux session doesn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions