b70977b25657c193a3a6c0445b63325a420da646
- Author
- Isaac Levy <isaac.r.levy@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
perf(pyenv): do not check if it's disabled (#11338)
Diff
1diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh
2index 7fbd1589ea77c05f6d795043bbe3456782ab2ada..48c8ffaf55a44f5153d87fbeca2b2594ac173c61 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 [[ "$(pyenv commands)" =~ "virtualenv-init" && "$ZSH_PYENV_VIRTUALENV" != false ]]; then
10+ if [[ "$ZSH_PYENV_VIRTUALENV" != false && "$(pyenv commands)" =~ "virtualenv-init" ]]; then
11 eval "$(pyenv virtualenv-init - zsh)"
12 fi
13