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 - git
- gmp - gmp
- icu4c - icu4c
- jless
- jq - jq
- jsoncpp - jsoncpp
- libgit2 - libgit2

View File

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