mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
feat(pyenv): don't load pyenv-virtualenv with ZSH_PYENV_VIRTUALENV=false
Closes #9443 Co-authored-by: Pandu POLUAN <pepoluan@gmail.com>
This commit is contained in:
parent
823be4ef5f
commit
1b03896a0e
2 changed files with 4 additions and 1 deletions
|
|
@ -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" ]]; then
|
||||
if [[ -d "$PYENV_ROOT/plugins/pyenv-virtualenv" && "$ZSH_PYENV_VIRTUALENV" != false ]]; then
|
||||
eval "$(pyenv virtualenv-init - zsh)"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue