fix(pyenv): fix pyenv-virtualenv detection under macOS.

master
Kaede Hoshikawa 5 years ago committed by Marc Cornellà
parent 3c209b00d6
commit c6c364317d
  1. 2
      plugins/pyenv/pyenv.plugin.zsh

@ -78,7 +78,7 @@ if [[ $FOUND_PYENV -eq 1 ]]; then
eval "$(pyenv init - --no-rehash zsh)"
# If pyenv-virtualenv exists, load it
if [[ -d "$(pyenv root)/plugins/pyenv-virtualenv" && "$ZSH_PYENV_VIRTUALENV" != false ]]; then
if [[ "$(pyenv commands)" =~ "virtualenv-init" && "$ZSH_PYENV_VIRTUALENV" != false ]]; then
eval "$(pyenv virtualenv-init - zsh)"
fi

Loading…
Cancel
Save