I'm working intensively with pipenv (Python) and tmux. Each of my projects has its own pipenv environment and I like starting tmux within this environment, e.g., running the following command:
pipenv run tmux
This works fine for the first project where I run this command. But as soon as I run it for a second project (while the first tmux session is still active), new panes in the second tmux session will start with the pipenv environment from the first tmux session.
To be precise: the problem does not occur for the initial pane of the second tmux session, but only when I open new panes.
Any ideas?