c6c364317d1762aafc575951c08c2cccce76fffa
- Author
- Kaede Hoshikawa <futursolo@users.noreply.github.com>
- Committer
- Marc Cornellà <hello@mcornella.com>
- Date
Message
Diff
1diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh
2index d91b5daa7cb84da2c4684a8d86045acbc5aae8fa..39897ed161147b88e8864e7a9f49b106a69576cd 100644
3--- a/plugins/pyenv/pyenv.plugin.zsh
4+++ b/plugins/pyenv/pyenv.plugin.zsh
5@@ -78,7 +78,7 @@ if [[ $FOUND_PYENV -eq 1 ]]; then
6 eval "$(pyenv init - --no-rehash zsh)"
7
8 # If pyenv-virtualenv exists, load it
9- if [[ -d "$(pyenv root)/plugins/pyenv-virtualenv" && "$ZSH_PYENV_VIRTUALENV" != false ]]; then
10+ if [[ "$(pyenv commands)" =~ "virtualenv-init" && "$ZSH_PYENV_VIRTUALENV" != false ]]; then
11 eval "$(pyenv virtualenv-init - zsh)"
12 fi
13