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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user