fix(pyenv): use corect --path argument for init

Fixes "mkdir: Permission Denied" on Ubuntu 25.10 when calling "pyenv init - --no-rehash zsh".
"pyenv init --path --no-rehash zsh" works correctly.
This commit is contained in:
ddss-kalpa 2026-02-22 19:44:39 +01:00 committed by GitHub
commit 40d6b33373
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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