diff options
author | Kaede Hoshikawa <futursolo@users.noreply.github.com> | 2021-10-03 16:18:33 +0900 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-10-04 10:33:27 +0200 |
commit | c6c364317d1762aafc575951c08c2cccce76fffa (patch) | |
tree | 3e230500eb4bfc710c76d9d7e6f1215e402a9322 /plugins/pyenv | |
parent | 3c209b00d69499db93fb6aac5c79a6179ff6b855 (diff) | |
download | zsh-c6c364317d1762aafc575951c08c2cccce76fffa.tar.gz zsh-c6c364317d1762aafc575951c08c2cccce76fffa.tar.bz2 zsh-c6c364317d1762aafc575951c08c2cccce76fffa.zip |
fix(pyenv): fix pyenv-virtualenv detection under macOS.
Diffstat (limited to 'plugins/pyenv')
-rw-r--r-- | plugins/pyenv/pyenv.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh index d91b5daa7..39897ed16 100644 --- a/plugins/pyenv/pyenv.plugin.zsh +++ b/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 |