cmc / snippets / 196505b81127
bootstrap file for homebrew
43 lines · 699 bytes
1# Taps
2tap "koekeishiya/formulae"
3
4# Formulae
5brew "stow"
6brew "gnupg"
7brew "pinentry-mac"
8brew "git"
9brew "ripgrep"
10brew "fzf"
11brew "bat"
12brew "fd"
13brew "koekeishiya/formulae/yabai"
14brew "koekeishiya/formulae/skhd"
15brew "ispell"
16brew "zsh-autosuggestions"
17brew "zsh-syntax-highlighting"
18brew "powerlevel10k"
19brew "uv"
20brew "gh"
21brew "glab"
22brew "tmux"
23brew "eza"
24brew "zoxide"
25brew "bottom"
26brew "yazi"
27brew "lazygit"
28brew "direnv"
29brew "tldr"
30brew "bat"
31brew "ripgrep"
32brew "fd"
33
34# Casks
35cask "iterm2"
36cask "vscodium"
37cask "bitwarden"
38cask "mullvad-vpn"
39cask "signal"
40cask "syncthing"
41cask "font-fira-code-nerd-font"
42cask "karabiner-elements"
43cask "stats"23 lines · 812 bytes
1#!/usr/bin/env bash
2
3# Get the directory where this script lives
4MACOS_DIR=$(dirname "$(realpath "$0")")
5
6echo "🍺 Syncing Homebrew with Brewfile..."
7
8if ! 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)"
12fi
13
14# Use bundle to install everything in the Brewfile
15# --cleanup would remove anything NOT in the Brewfile (use with caution!)
16brew bundle --file="$MACOS_DIR/Brewfile"
17
18# Restart services to ensure they pick up any stowed config changes
19echo "♻️ Restarting services..."
20brew services restart koekeishiya/formulae/yabai
21brew services restart koekeishiya/formulae/skhd
22
23echo "✅ macOS environment synced."