Skip to main content

Homebrew

Homebrew is not only useful for installing packages and apps. When I need to reset, or set up a new Mac, I first clone my backup repo and run:

bootstrap.sh
#!/bin/zsh

if ! command -v brew >/dev/null 2>&1; then
echo "Installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

echo "Installing homebrew bundle"
brew bundle --all

Which first install Homebrew, then install all packages and apps from my Brewfile using Homebrew Bundle:

Brewfile
tap "homebrew/bundle"

cask "zed"
cask "jetbrains-toolbox"

cask "karabiner-elements"
cask "raycast"
cask "shottr"
cask "finicky"
cask "squirrel"
cask "stats"

# App Store
brew "mas"
mas "Hidden Bar", id: 1452453066

# ... Other tools like zoom, slack, etc.