From 5cfd8506e08eb04c5195541ac205e2284dcf2b00 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 14 Feb 2024 21:55:25 +0100 Subject: [PATCH] chore: improve bundle command examples --- knowledge base/homebrew.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/knowledge base/homebrew.md b/knowledge base/homebrew.md index b7439d2..ae3c8a5 100644 --- a/knowledge base/homebrew.md +++ b/knowledge base/homebrew.md @@ -60,10 +60,20 @@ brew services start 'openssl-osx-ca' # Bring an installation up to speed from a Brewfile. brew bundle brew bundle --global -brew bundle --file "$HOME/Brewfile" --no-lock +brew bundle --no-lock install --file "$HOME/Brewfile" -# Dump all installed casks/formulae/images/taps into a Brewfile in the current -# directory. +# Check what changes from a Brewfile. +brew bundle check +brew bundle … check --file "$HOME/Brewfile" + +# Check what items not listed in a Brewfile would be removed. +brew bundle cleanup +brew bundle … cleanup --file "$HOME/Brewfile" + +# Remove items not listed in a Brewfile. +brew bundle … --cleanup --zap + +# Dump all installed casks/formulae/images/taps into a Brewfile. brew bundle dump