Skip to content

Per-window environment variables #832

Closed
@trombonehero

Description

@trombonehero

It would be nice if I could set different environment values in different windows within a session.

Using tmuxp 1.15.0, libtmux 0.15.4, I can set environment variables for a session, e.g.:

session_name: foo
environment:
  DATABASE_URL: "..."

However, what I really want to do is set different env vars in different windows, e.g.:

session_name: foo
environment:
  DATABASE_URL: "sqlite3:///default.db"

windows:
  - window_name: deprecated
    environment:
      DATABASE_URL: "... one test DB ..."

  - window_name: not_ready_yet
    environment:
      DATABASE_URL: "... another test DB ..."

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions