fix(pyenv): load managed Python in every zsh
The pyenv fragment lived in the interactive overlay, so agents and zsh -c fell back to system Python. Install it through the always-on fragment path and keep XDG destinations aligned with the loader.
This commit is contained in:
+4
-2
@@ -21,5 +21,7 @@ fi
|
||||
# Uncomment the following line if you would like to automatically install it
|
||||
# pyenv install 3.12.0 && pyenv global 3.12.0
|
||||
|
||||
# Apply the pyenv zsh configuration patch (downloads zshrc/pyenv.zsh to ~/.config/zshrc/pyenv.zsh)
|
||||
curl -fsSL https://git.miomio.moe/mio/easyzsh/raw/branch/master/patch.sh | bash -s -- pyenv
|
||||
# Always-on fragment: ~/.config/zsh/pyenv.zsh (sourced from ~/.zshenv)
|
||||
curl -fsSL https://git.miomio.moe/mio/easyzsh/raw/branch/master/patch.sh | bash -s -- zsh/pyenv
|
||||
# Drop legacy interactive-only copy if present
|
||||
rm -f "$HOME/.config/zshrc/pyenv.zsh"
|
||||
|
||||
Reference in New Issue
Block a user