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:
Frank Qing
2026-08-07 18:14:22 +08:00
parent bff5ceddf0
commit 9257eceb47
6 changed files with 31 additions and 15 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ for arg in "$@"; do
exit 1
fi
rel="${arg}.zsh"
destination="$HOME/.config/${arg}.zsh"
destination="${XDG_CONFIG_HOME:-$HOME/.config}/${arg}.zsh"
else
if [[ -z "$arg" || "$arg" == *[![:alnum:]_-]* ]]; then
echo "Invalid config name: $arg" >&2
@@ -34,7 +34,7 @@ for arg in "$@"; do
fi
mkdir -p "$(dirname "$destination")"
temporary=$(mktemp "$HOME/.config/.easyzsh-XXXXXX")
temporary=$(mktemp "$(dirname "$destination")/.easyzsh-XXXXXX")
trap 'rm -f "$temporary"' EXIT
if ! curl -fsSL "${BASE_URL}/${rel}" -o "$temporary"; then