Skip to content

Instantly share code, notes, and snippets.

@Wrestor
Wrestor / setup.sh
Last active April 25, 2025 11:42
Setup my new Mac
#!/bin/zsh
echo "Enable Limit Ad Tracking"
defaults write com.apple.AdLib forceLimitAdTracking -bool yes
defaults write com.apple.AdLib AD_DEVICE_IDFA -string '00000000-0000-0000-0000-000000000000'
echo "Installing Homebrew with Xcode Command Line Tools..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add brew shellenv to .zprofile if not already present
grep -qxF 'eval "$(/opt/homebrew/bin/brew shellenv)"' ~/.zprofile || echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile