Update .chezmoidata/packages.yaml
Update update_packagelist.sh
This commit is contained in:
parent
e287de8a2d
commit
0e744637b7
|
@ -18,6 +18,7 @@ packages:
|
|||
- git
|
||||
- gmp
|
||||
- icu4c
|
||||
- jless
|
||||
- jq
|
||||
- jsoncpp
|
||||
- libgit2
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue