My dotfiles for macOS based on chezmoi, Homebrew, mise, and native self-updating toolchains (rustup, dotnetup, uv, pnpm).
Install Xcode Command Line Tools, verify and install chezmoi from its signed GitHub release checksums, then initialize and apply:
xcode-select -p &>/dev/null || xcode-select --install
mkdir -p ~/.local/bin
CHEZMOI_VER="$(curl --proto '=https' --tlsv1.2 -fsSL https://api.github.com/repos/twpayne/chezmoi/releases/latest | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p')"
tmpdir="$(mktemp -d)"
curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/twpayne/chezmoi/releases/download/v${CHEZMOI_VER}/chezmoi-darwin-arm64" -o "$tmpdir/chezmoi"
curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/twpayne/chezmoi/releases/download/v${CHEZMOI_VER}/chezmoi_${CHEZMOI_VER}_checksums.txt" -o "$tmpdir/checksums.txt"
expected_sha="$(awk '/chezmoi-darwin-arm64$/ { print $1 }' "$tmpdir/checksums.txt")"
printf '%s %s\n' "$expected_sha" "$tmpdir/chezmoi" | shasum -a 256 -c -
install -m 0755 "$tmpdir/chezmoi" ~/.local/bin/chezmoi
rm -rf "$tmpdir"
~/.local/bin/chezmoi init --apply git@github.com:pethin/dotfiles.git