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

Inherit some or all of parent environment #3

Open
focusaurus opened this issue Dec 16, 2019 · 2 comments
Open

Inherit some or all of parent environment #3

focusaurus opened this issue Dec 16, 2019 · 2 comments

Comments

@focusaurus
Copy link

What do you think about trying to retain some/all/more of the current environment variables when launching the child process? Aliases are helpful, but often my aliases and functions depend upon environment like AWS_PROFILE etc and at the moment as far as I can tell the environment gets reset.

I can work around by 1-by-1 specifying them like:

WATCH_COMMAND='zsh -ci' /usr/local/bin/watch "n=${n}; echo hey n: ${n} hey"

But it's tedious and I assume there's nasty escaping issues in there too.

@ghostsquad
Copy link

This is a good idea

@antonmedv
Copy link
Owner

Maybe someone willing to create this is PR?

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

3 participants