This had me messed up for a significant amount of time today and finally after drawing blanks with all my google attempts of combinations of 'zsh' + 'pyenv' + 'tmux' I decided to search for 'rvm + tmux + zsh' instead which almost instantly gave me a bunch of hits.
In a nutshell, if you're working with pyenv and the shims don't take effect when you're inside tmux its probably because your
$PATH is being set a second time when you fire up
I found a suggestions to solve the problem
- checking your path for duplicates here.
/etc/zshenvwith this fix.
- checking for
$TMUXwhen setting the
I will leave it up to you to choose which solution to go with, but for me since the crux of the problem was zshenv, it made the most sense to patch