Skip to content

Instantly share code, notes, and snippets.

@GregBrimble
Last active October 26, 2025 15:22
Show Gist options
  • Select an option

  • Save GregBrimble/ae4274f32327171ce9778cf030358be0 to your computer and use it in GitHub Desktop.

Select an option

Save GregBrimble/ae4274f32327171ce9778cf030358be0 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eufo pipefail
if ! which -s brew; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
if ! which -s "chezmoi"; then
brew install chezmoi
fi
if [ -d "$HOME/.local/share/chezmoi/.git" ]; then
chezmoi update
else
chezmoi init GregBrimble
chezmoi apply
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment