feat(dfm): Add brew leaves and clean commands

This commit is contained in:
2024-04-08 02:51:32 +03:00
parent 75c6a0bccd
commit c083d2a20a

View File

@@ -213,6 +213,8 @@ function section_brew
"update:Updates and upgrades brew packages"
"updatebundle:Updates Brewfile with descriptions"
"autoupdate:Setups brew auto-update and runs it immediately"
"leaves:List brew leaves (installed on request)"
"clean:Clean up brew packages"
)
x-have brew && {
@@ -231,6 +233,12 @@ function section_brew
--file="$BREWFILE" \
--describe && msg_yay "Done!"
;;
leaves)
brew leaves --installed-on-request
;;
clean)
brew bundle cleanup --file="$BREWFILE" && msg_yay "Done!"
;;
autoupdate)
brew autoupdate delete
brew autoupdate start 43200 --upgrade --cleanup --immediate