Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions bin/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading