Is there any way to export/upgrade list of variable env from a file or something to tmux's window/session/pane?

Here I have to manually source .bashrc to update new var env to each tmux's pane.


Add ENV in ~/.tmux.conf file

Did you try declaring the ENV var in ~/.tmux.conf

Example ~/.tmux.conf snipet



Reload tmux and echo $FOO

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.