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:
#!/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 :
tap "homebrew/bundle"
cask "zed"cask "jetbrains-toolbox"
cask "karabiner-elements"cask "raycast"cask "shottr"cask "squirrel"
# App Storebrew "mas"mas "Hidden Bar", id: 1452453066
# ... Other tools like zoom, slack, etc.