From 18786a2e053f1837f068d3cadbd3afcefc9b0e80 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Wed, 26 Nov 2025 09:02:24 -0500 Subject: Move homebrew to macos/ --- macos/homebrew/sync-brewfile.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 macos/homebrew/sync-brewfile.sh (limited to 'macos/homebrew/sync-brewfile.sh') diff --git a/macos/homebrew/sync-brewfile.sh b/macos/homebrew/sync-brewfile.sh new file mode 100755 index 0000000..19b5970 --- /dev/null +++ b/macos/homebrew/sync-brewfile.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -eou pipefail + +# Create a new Brewfile with only manually installed formulae and casks +( + echo 'tap "neovim/neovim"' + echo 'tap "eugenetriguba/bolt", "https://git.sr.ht/~eugenetriguba/homebrew-bolt"' + echo 'tap "eugenetriguba/justify", "https://git.sr.ht/~eugenetriguba/homebrew-justify"' + brew bundle dump --file=- --force | + ( + grep -E "^brew" | grep -f <(brew leaves) + brew list --cask | sed 's/^/cask "/;s/$/"/' + ) | + sort +) >Brewfile + +echo "Brewfile has been updated with only manually installed packages." -- cgit v1.2.3