exo icon indicating copy to clipboard operation
exo copied to clipboard

[FEATURE] more direct way to refresh daemon environment

Open brandonbloom opened this issue 3 years ago • 3 comments

Right now, you have to do exo exit then restart the daemon to pickup any new environment variables at that level. It shouldn't be necessary to do this.

We may wish to explicitly invoke the user's preferred shell, so that we get a "clean" environment, instead of whatever environment exo happened to have been run in when it started the daemon.

brandonbloom avatar Jan 03 '22 22:01 brandonbloom

cc @finnigantime

brandonbloom avatar Jan 03 '22 22:01 brandonbloom

This will be fixed when #543 lands. See 82591c3.

brandonbloom avatar Feb 17 '22 02:02 brandonbloom

@stevekrenzel points out that the automatic environment refreshing logic means that something like FOO=123 exo start bar would not pass the FOO variable over to the bar program, which seems counter-intuitive. I think the new behavior of ignoring the ephemeral shell state is a better default, but definitely not ideal. Before closing this issue, we'll need to figure out if there is some way to handle/surface interactive environment differing from the default environment snapshot.

brandonbloom avatar Feb 17 '22 20:02 brandonbloom