Hacker News new | ask | show | jobs
by SeerLite 1205 days ago
I think it's undocumented but you're supposed to be able to have update-environment set to '*' so it always uses the parent shell's environment variables when creating a new session.

I have a very quirky setup with tmux and rely on this feature, but it's broken IIRC and add important variables to update-environment manually.

1 comments

Works for me, adding the following line to my .tmux.conf makes it inherit environment variables from the parent shell

    set-option -g update-environment "*"