Files
dotfiles/run_after_update_packagelist.sh.tmpl
Florian Beisel e287de8a2d Add private/chezmoi
Add update_packagelist.sh
2024-06-04 17:44:27 +02:00

19 lines
388 B
Bash

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