Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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.


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

if [ -x /usr/libexec/path_helper ]; then
        PATH="" # <- ADD THIS LINE (right before path_helper call)
        eval `/usr/libexec/path_helper -s`

You're welcome :)

Copy link

bentaculum commented Jan 25, 2020

Nice fix, thank you!

Copy link

javimontero commented Feb 6, 2021


Copy link

limtete commented May 17, 2021

nice fix, thx

Copy link

woml commented Mar 12, 2022

Cool! It's helpful.

Copy link

MProuts commented Sep 29, 2022


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment