watch icon indicating copy to clipboard operation
watch copied to clipboard

Inherit some or all of parent environment

Open focusaurus opened this issue 6 years ago • 2 comments

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.

focusaurus avatar Dec 16 '19 23:12 focusaurus

This is a good idea

ghostsquad avatar May 15 '20 17:05 ghostsquad

Maybe someone willing to create this is PR?

antonmedv avatar May 16 '20 07:05 antonmedv