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