Skip to content

Instantly share code, notes, and snippets.

@ekreutz
ekreutz / tmux_conda_fix.md
Last active May 9, 2024 04:07
Fix tmux messing with conda path

Fix tmux messing with conda

Problem: When running a conda environment and opening tmux on macOS, a utility called path_helper is run again. Essentially, the shell is initialized twice which messes up the ${PATH} so that the wrong Python version shows up within tmux.

Solution

If using bash, edit /etc/profile and add one line. (For zsh, edit /etc/zprofile)

...