Commit 9f25cc8599
Verified · cmc
Layout: unified · split
Brewfile added +32
| @@ -0,0 +1,32 @@ | |||
| 1 | # Taps | ||
| 2 | tap "homebrew/bundle" | ||
| 3 | tap "homebrew/services" | ||
| 4 | tap "koekeishiya/formulae" | ||
| 5 | |||
| 6 | # Formulae | ||
| 7 | brew "stow" | ||
| 8 | brew "gnupg" | ||
| 9 | brew "pinentry-mac" | ||
| 10 | brew "git" | ||
| 11 | brew "ripgrep" | ||
| 12 | brew "fzf" | ||
| 13 | brew "bat" | ||
| 14 | brew "fd" | ||
| 15 | brew "yabai" | ||
| 16 | brew "skhd" | ||
| 17 | brew "ispell" | ||
| 18 | brew "zsh-autosuggestions" | ||
| 19 | brew "zsh-syntax-highlighting" | ||
| 20 | brew "powerlevel10k" | ||
| 21 | brew "uv" | ||
| 22 | brew "gh" | ||
| 23 | brew "glab" | ||
| 24 | |||
| 25 | # Casks | ||
| 26 | cask "iterm2" | ||
| 27 | cask "vscodium" | ||
| 28 | cask "bitwarden" | ||
| 29 | cask "mullvad-vpn" | ||
| 30 | cask "signal" | ||
| 31 | cask "syncthing" | ||
| 32 | cask "font-fira-code-nerd-font" | ||
macos/brew.sh added +23
| @@ -0,0 +1,23 @@ | |||
| 1 | #!/usr/bin/env bash | ||
| 2 | |||
| 3 | # Get the directory where this script lives | ||
| 4 | MACOS_DIR=$(dirname "$(realpath "$0")") | ||
| 5 | |||
| 6 | echo "🍺 Syncing Homebrew with Brewfile..." | ||
| 7 | |||
| 8 | if ! command -v brew &> /dev/null; then | ||
| 9 | echo "Installing Homebrew first..." | ||
| 10 | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
| 11 | eval "$(/opt/homebrew/bin/brew shellenv)" | ||
| 12 | fi | ||
| 13 | |||
| 14 | # Use bundle to install everything in the Brewfile | ||
| 15 | # --cleanup would remove anything NOT in the Brewfile (use with caution!) | ||
| 16 | brew bundle --file="$MACOS_DIR/Brewfile" | ||
| 17 | |||
| 18 | # Restart services to ensure they pick up any stowed config changes | ||
| 19 | echo "♻️ Restarting services..." | ||
| 20 | brew services restart yabai | ||
| 21 | brew services restart skhd | ||
| 22 | |||
| 23 | echo "✅ macOS environment synced." | ||