From fae671b8a0c66b6a8477d7610285e62c5c780d16 Mon Sep 17 00:00:00 2001 From: Badstagram Date: Tue, 6 Jan 2026 17:27:10 +0000 Subject: [PATCH] fix(macos): install brew in setup script --- .chezmoiscripts/run_onchange_macos_setup.sh.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.chezmoiscripts/run_onchange_macos_setup.sh.tmpl b/.chezmoiscripts/run_onchange_macos_setup.sh.tmpl index 1ea7b5b..173de82 100644 --- a/.chezmoiscripts/run_onchange_macos_setup.sh.tmpl +++ b/.chezmoiscripts/run_onchange_macos_setup.sh.tmpl @@ -1,6 +1,13 @@ {{ if eq .chezmoi.os "darwin" -}} #!/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)" + eval "$(/opt/homebrew/bin/brew shellenv)" +fi + defaults write NSGlobalDomain _HIHideMenuBar -bool TRUE # Auto hide menu bar defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool FALSE defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool FALSE