Add automatic Homebrew package installation

bladee.bsky.social 6a300a97 8d3561e3

verified
+17
.chezmoidata/packages.yaml
···
···
+
packages:
+
linux:
+
brew:
+
- bat
+
- chezmoi
+
- fd
+
- gcc
+
- git
+
- git-credential-libsecret
+
- git-credential-oauth
+
- helix
+
- htop
+
- jj
+
- restic
+
- ripgrep
+
- rustup
+
- uv
+9
run_onchange_linux-install-packages.sh.tmpl
···
···
+
{{ if eq .chezmoi.os "linux" -}}
+
#!/usr/bin/bash
+
+
brew bundle --file=/dev/stdin <<EOF
+
{{ range .packages.linux.brew -}}
+
brew {{ . | quote }}
+
{{ end -}}
+
EOF
+
{{ end -}}