fix(macos): install brew in setup script

This commit is contained in:
Badstagram 2026-01-06 17:27:10 +00:00
parent 9d22186aa4
commit fae671b8a0

View File

@ -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