pyenv inside tmux with zsh on a mac
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.
- modifying
/etc/zshenv
with this fix. - checking for
$TMUX
when setting the$PATH
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 /etc/zshenv
Written by Ali-Akber Saifee
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#