fix: uv installs without appending to the shell files chezmoi owns

astral's installer appended `. "$HOME/.local/bin/env"` to ~/.zshrc, so a
fresh box showed .zshrc as modified right after the install. Same fix rustup
already had, via UV_NO_MODIFY_PATH=1.
This commit is contained in:
bcherb2 committed 2026-11-18 02:47:59 -05:00
1 parent e7bc5fdaff
commit c710e1934d
2 files changed
+6 -1

No files matched your search

+2
View File
@@ -713,6 +713,8 @@ done
set --
has "rustup leaves the shell files to chezmoi" "-y --no-modify-path" \
"$(grep 'rustup-init.sh.*-y' $D)"
has "uv leaves the shell files to chezmoi" "UV_NO_MODIFY_PATH=1 sh" \
"$(grep 'astral.sh/uv/install.sh' $D)"
printf '\n\033[1mNerd Fonts are the release, per user, not fonts-powerline\033[0m\n'
newbox; BOXPATH=$SEALSUDO; pick fonts/hack-nerd-font fonts/iosevka-nerd-font
+4 -1
View File
@@ -1115,7 +1115,10 @@ install_bespoke() {
fi ;;
core/uv)
if have uv && [ "$DRYRUN" -eq 0 ]; then say " uv already present — leaving it"; continue; fi
run_sh "curl -LsSf https://astral.sh/uv/install.sh | sh" || note_fail "$key" "installer failed" ;;
# UV_NO_MODIFY_PATH for the reason rustup gets --no-modify-path: the
# shell files are chezmoi's, and astral's installer otherwise appends
# `. "$HOME/.local/bin/env"` to ~/.zshrc -- drift on the next apply.
run_sh "curl -LsSf https://astral.sh/uv/install.sh | env UV_NO_MODIFY_PATH=1 sh" || note_fail "$key" "installer failed" ;;
agents/claude)
# Anthropic's native installer: a per-user install to ~/.local/bin
# that updates itself, which is what dev runs. Not npm -- that copy