diff --git a/README.md b/README.md index 9cdbf22..2628324 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The scripts are not on `PATH`; call them by path. ### Bootstrap a machine -Installs Homebrew and the tracked packages, links managed dotfiles, creates missing local files, installs mise from [mise.run](https://mise.run) along with its runtimes, and optionally applies macOS defaults. +Installs Homebrew and the tracked packages, links managed dotfiles, creates missing local files, installs mise from [mise.run](https://mise.run) along with its runtimes, and optionally applies macOS defaults. On a fresh Mac, install Apple's command-line tools first (`xcode-select --install`) so `git` is available to clone this repo; the Homebrew installer then asks once for your password and for Enter to continue. ```bash ~/dotfiles/bin/bootstrap diff --git a/bin/bootstrap b/bin/bootstrap index cb0abe5..c52ff9d 100755 --- a/bin/bootstrap +++ b/bin/bootstrap @@ -24,8 +24,10 @@ ensure_homebrew() { return 0 fi - echo "Installing Homebrew..." - NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + # Interactive on purpose: the installer needs sudo to create its prefix, and with + # NONINTERACTIVE=1 it fails instead of asking for your password. + echo "Installing Homebrew (it asks for your password and for Enter to continue)..." + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # A fresh install is not on PATH yet in this process. local brew_bin