Closed mnewt closed 3 years ago
Probably the right thing to do here would be to just use setq-default
, no? Then, buffers which haven't actively overridden the default value locally will see the new, updated default.
@purcell you're right. Now the only change in this PR is to use setq-default
on eshell-path-env
, instead of setq
. How's that?
Perfect, thank you.
This changes the function
exec-path-from-shell-setenv
to set the value ofeshell-path-env
in each existing Eshell buffer. This is becauseeshell-path-env
is a buffer local variable.To me this seems like expected behavior--that we would be changing all instances of the variable.
However, it could be surprising to people who expect
exec-path-from-shell
to not affect running shells.What does everyone think? Is this a good change to make?