{{ if eq .chezmoi.os "darwin" -}} #!/bin/sh # Install Claude Code on macOS, where no package manager owns it. # # It is deliberately not a brew cask. The official installer keeps # ~/.local/share/claude/versions/ current on its own # # Gated on the binary rather than the hostname, so a new Mac needs no entry # anywhere. Reruns only when this file changes; rename to `run_` if you want # every apply to re-check. set -eu if command -v claude >/dev/null 2>&1; then exit 0 fi # Piped to bash on purpose -- the installer uses [[ ]] and =~. curl -fsSL https://claude.ai/install.sh | bash {{ end -}}