Bootstrap script for setting up a fresh machine with my dotfiles (private) via chezmoi and Homebrew.
On a fresh macOS, Linux, or WSL machine:
curl -fsSL https://raw.githubusercontent.com/sashton/dotfiles-bootstrap/main/install.sh -o /tmp/bootstrap.sh && bash /tmp/bootstrap.sh && rm /tmp/bootstrap.shDownload-then-run (rather than curl | bash) gives the script an interactive TTY, which Homebrew's installer needs for sudo prompts and gh auth login needs for browser-based authentication.
This will:
- Install Homebrew
- Install GitHub CLI (
gh) - Prompt for
gh auth login(opens a browser to authenticate) - Hand off to
chezmoi init --applyagainst the private dotfiles repo