Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone current environment variables #3027

Open
musjj opened this issue Dec 23, 2023 · 3 comments
Open

Clone current environment variables #3027

musjj opened this issue Dec 23, 2023 · 3 comments

Comments

@musjj
Copy link

musjj commented Dec 23, 2023

Having the ability to clone the environment variables from the current shell session into a new pane can be really useful.

For example, direnv can set environment variables that modifies program's behavior, install new programs into the PATH, etc. Currently, when you run zellij run -- $ARGS, $ARGS won't be affected by the current direnv session. This will cause issues like missing programs, incorrect behavior, etc.

In kitty, you can do this with --copy-env. A similar option would be nice.

@cgbarthel
Copy link

tmux has this ability as well. In the config you can specify which environment variables (DISPLAY, SSH_AGENT, etc) you want to bring into a new tmux environment.

@dsully
Copy link

dsully commented Jan 21, 2024

See also #1531

@lakshya-sky
Copy link

lakshya-sky commented Jun 5, 2024

Related #2844 and #2639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants