zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
20.27k stars 630 forks source link

[Feature Request] equivalent to `set-environment` from tmux #2639

Open theEndBeta opened 1 year ago

theEndBeta commented 1 year ago

https://man7.org/linux/man-pages/man1/tmux.1.html#GLOBAL_AND_SESSION_ENVIRONMENT

tldr - I'd like to be able to dynamically add to env (https://zellij.dev/documentation/options.html#env) for just the current session.

There are certain environment variables that I can't or don't want to set before the session begins. Things like API keys or credentials stored as env variables that need to be periodically refreshed. tmux allows you to do this using the set-environment command, which will cause the env to be propagated to any new panes.

Is this something that would be suited for core zellij, or is this better off as a plugin?

lakshya-sky commented 2 months ago

@theEndBeta did you figure out the how to do it, yet? I also need to set zellij session variables manually. Thanks!