Add private/chezmoi
Add update_packagelist.sh
This commit is contained in:
parent
c203c4f481
commit
e287de8a2d
1
private/symlink_chezmoi
Normal file
1
private/symlink_chezmoi
Normal file
@ -0,0 +1 @@
|
||||
/Users/beisel/.local/share/chezmoi
|
18
run_after_update_packagelist.sh.tmpl
Normal file
18
run_after_update_packagelist.sh.tmpl
Normal file
@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
|
Loading…
x
Reference in New Issue
Block a user