Skip to content

Commit 53c7fb9

Browse files
committed
feat(macos): ✨ add human-friendly install phase banners
1 parent 6e48d42 commit 53c7fb9

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

install.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ report_git_identity_hint() {
280280
echo " git config --global user.email \"you@example.com\""
281281
}
282282

283+
phase_banner() {
284+
printf '\n%s\n' "────────────────────────────────────────────────"
285+
printf '▶ %s\n' "$1"
286+
printf '%s\n' "────────────────────────────────────────────────"
287+
}
288+
283289
install_uv_python_version() {
284290
if uv python install --preview --default "$UV_PYTHON_VERSION"; then
285291
ensure_local_bin_on_path
@@ -449,15 +455,17 @@ if ! $MINIMAL_MODE && ! $DRY_RUN; then
449455
fi
450456
fi
451457

458+
phase_banner "Homebrew Bundle"
452459
if [ -f "$MACOS_BREWFILE" ]; then
453460
echo "📦 Installing macOS packages from Brewfile..."
454-
brew bundle install --file "$MACOS_BREWFILE"
461+
brew bundle install --verbose --file "$MACOS_BREWFILE"
455462
else
456463
echo "⚠️ Missing macOS Brewfile at $MACOS_BREWFILE; skipping package install."
457464
fi
458465

459466
ensure_local_bin_on_path
460467

468+
phase_banner "Shell integration"
461469
# fzf keybindings/completions (Homebrew layout)
462470
if $INSTALL_ALL || $FORCE_MODE; then configure_fzf="y"; else read -r -p $'\n🎹 Enable fzf keybindings and completions? [y/N]: ' configure_fzf; fi
463471
if [[ "$configure_fzf" =~ ^[Yy]$ ]]; then
@@ -476,6 +484,7 @@ if ! $MINIMAL_MODE && ! $DRY_RUN; then
476484
fi
477485
fi
478486

487+
phase_banner "macOS system preferences"
479488
if [ -f "$MACOS_DEFAULTS_SCRIPT" ]; then
480489
if $INSTALL_ALL || $FORCE_MODE; then apply_macos_defaults="y"; else read -r -p $'\n🍎 Apply recommended macOS defaults? [y/N]: ' apply_macos_defaults; fi
481490
if [[ "$apply_macos_defaults" =~ ^[Yy]$ ]]; then
@@ -500,6 +509,7 @@ if ! $MINIMAL_MODE && ! $DRY_RUN; then
500509
fi
501510

502511
# Optional: install pinned Python via uv
512+
phase_banner "Toolchain checks"
503513
if command -v uv >/dev/null 2>&1; then
504514
if $INSTALL_ALL || $FORCE_MODE; then uv_install_py="y"; else read -r -p $'🐍 Install Python 3.13 via uv? [y/N]: ' uv_install_py; fi
505515
if [[ "$uv_install_py" =~ ^[Yy]$ ]]; then
@@ -515,6 +525,7 @@ if ! $MINIMAL_MODE && ! $DRY_RUN; then
515525
fi
516526
fi
517527

528+
phase_banner "Post-install hints"
518529
report_macos_stats_quarantine_hint
519530
;;
520531
Linux)

0 commit comments

Comments
 (0)