Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# SA Mac bootstrap — idempotent, with logging
set -u # don't exit on errors; we want to log them and continue
LOG_FILE="$HOME/Desktop/Setup MacBook for SA.txt"
mkdir -p "$HOME/Desktop" 2>/dev/null || true
log() { printf '[%s] %s\n' "$(date '+%Y-%m-%d %H:%M:%S')" "$*" | tee -a "$LOG_FILE"; }
section() { echo | tee -a "$LOG_FILE"; log "==== $* ===="; }