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

Is it possible to make a session inherit the same environment variable? #51

Open
pablox-cl opened this issue Oct 6, 2014 · 2 comments

Comments

@pablox-cl
Copy link

Right now, I'm doing something like:

  new_window "server"
  run_cmd    "export NANOC_ENV=development"
  run_cmd    "blablala"

  new_window "main"
  run_cmd    "export NANOC_ENV=development"
  run_cmd    "asfasf"

Afaik, there's no easy way to make tmux inherit environment variables from the previous process, but I was wondering if this could be possible with tmuxifier.

@jimeh
Copy link
Owner

jimeh commented Dec 1, 2014

That's a good question. I'll have a look at the possibility of setting session-wide environment variables.

@wilmoore
Copy link

@pablox-cl I personally use https://github.com/direnv/direnv to accomplish this.

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

No branches or pull requests

3 participants