-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·34 lines (28 loc) · 797 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·34 lines (28 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
# bootstrap.sh — One-command macOS setup.
#
# Usage:
# git clone --recursive git@github.com:LauraLangdon/dotfiles.git ~/Repos/dotfiles
# cd ~/Repos/dotfiles
# ./bootstrap.sh
#
# Safe to re-run: every step checks before acting.
set -euo pipefail
DOTFILES="$(cd "$(dirname "$0")" && pwd)"
export DOTFILES
source "$DOTFILES/scripts/utils.sh"
echo ""
info "=== macOS Bootstrap ==="
info "Dotfiles directory: $DOTFILES"
echo ""
# Run each numbered script in order.
# Scripts are named 00-xcode.sh, 01-homebrew.sh, etc.
for script in "$DOTFILES"/scripts/[0-9]*.sh; do
echo ""
info "--- Running $(basename "$script") ---"
source "$script"
done
echo ""
success "=== Bootstrap complete! ==="
info "See docs/MANUAL_STEPS.md for remaining manual steps."
echo ""