From e287de8a2df289477ce960f41aed24f36435556b Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Tue, 4 Jun 2024 17:44:27 +0200 Subject: [PATCH] Add private/chezmoi Add update_packagelist.sh --- private/symlink_chezmoi | 1 + run_after_update_packagelist.sh.tmpl | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 private/symlink_chezmoi create mode 100644 run_after_update_packagelist.sh.tmpl diff --git a/private/symlink_chezmoi b/private/symlink_chezmoi new file mode 100644 index 0000000..7f80dd0 --- /dev/null +++ b/private/symlink_chezmoi @@ -0,0 +1 @@ +/Users/beisel/.local/share/chezmoi diff --git a/run_after_update_packagelist.sh.tmpl b/run_after_update_packagelist.sh.tmpl new file mode 100644 index 0000000..e040770 --- /dev/null +++ b/run_after_update_packagelist.sh.tmpl @@ -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 < {{ .chezmoi.sourceDir }}/.chezmoidata/packages.yaml +