Skip to 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)"
echo >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
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 "squirrel"
# App Store
brew "mas"
mas "Hidden Bar", id: 1452453066
# ... Other tools like zoom, slack, etc.