Re:Be Careful Using Tmux and Environment Variables
by cauthon on Saturday March 04, 2023 @11:33AM
(#35022083)
It seems like the behavior would cause problems in the following workflow:
- create first session (launch server)
- detach
- set environmental variables
- create second session
But I don't understand why you would want to follow this workflow in practice.
When using tmux, all my work on that machine is done within tmux sessions, and I expect them to be sandboxed relative to each other. If I want to set an variable that's relevant to a session, I do it from within the session, not outside.
- create first session (launch server)
- detach
- set environmental variables
- create second session
But I don't understand why you would want to follow this workflow in practice.
When using tmux, all my work on that machine is done within tmux sessions, and I expect them to be sandboxed relative to each other. If I want to set an variable that's relevant to a session, I do it from within the session, not outside.