Update .chezmoidata/packages.yaml

Update update_packagelist.sh
This commit is contained in:
Florian Beisel 2024-06-04 17:51:38 +02:00
parent e287de8a2d
commit 0e744637b7
2 changed files with 5 additions and 3 deletions

View File

@ -18,6 +18,7 @@ packages:
- git
- gmp
- icu4c
- jless
- jq
- jsoncpp
- libgit2

View File

@ -1,5 +1,7 @@
#!/bin/bash
# packages.yaml hash: {{ include ".chezmoidata/packages.yaml" | sha256sum }}
# Generate the list of installed brew packages
brews=$(brew list --formula | awk '{print " - "$1}')
@ -7,12 +9,11 @@ brews=$(brew list --formula | awk '{print " - "$1}')
casks=$(brew list --cask | awk '{print " - "$1}')
# Print the output in the desired format
cat <<EOF
cat <<EOF > {{ .chezmoi.sourceDir }}/.chezmoidata/packages.yaml
packages:
darwin:
brews:
$brews
casks:
$casks
EOF > {{ .chezmoi.sourceDir }}/.chezmoidata/packages.yaml
EOF