Tmux iterm conda

For some reason, when entering tmux from iterm, the $PATH was somehow reset which leads to mismatching of Conda’s Python from the system’s one.

image-20210618161947909

without entering tux


image-20210618162614027

tmux entered


Solution

Added the following code to ~/.zshrc

# tmux conda issue
[[ -z $TMUX ]] || conda deactivate; conda activate base
Written on June 18, 2021