From 73476a8d16ceba7886a544bedbd935c9b8f45016 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 1 Jan 2026 12:16:51 -0700 Subject: [PATCH] Add Install From Nonstandard Brewfile as a Brew TIL --- README.md | 3 ++- brew/install-from-nonstandard-brewfile.md | 25 +++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 brew/install-from-nonstandard-brewfile.md diff --git a/README.md b/README.md index 98c3dbf..7159f8c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ working across different projects via [VisualMode](https://www.visualmode.dev/). For a steady stream of TILs, [sign up for my newsletter](https://visualmode.kit.com/newsletter). -_1715 TILs and counting..._ +_1716 TILs and counting..._ See some of the other learning resources I work on: @@ -131,6 +131,7 @@ If you've learned something here, support my efforts writing daily TILs by - [Clean Up Your Brew Installations](brew/clean-up-your-brew-installations.md) - [Configure Brew Environment Variables](brew/configure-brew-environment-variables.md) - [Export List Of Everything Installed By Brew](brew/export-list-of-everything-installed-by-brew.md) +- [Install From Nonstandard Brewfile](brew/install-from-nonstandard-brewfile.md) - [Install Go Packages In Brewfile](brew/install-go-packages-in-brewfile.md) - [List All Services Managed By Brew](brew/list-all-services-managed-by-brew.md) diff --git a/brew/install-from-nonstandard-brewfile.md b/brew/install-from-nonstandard-brewfile.md new file mode 100644 index 0000000..5591f7d --- /dev/null +++ b/brew/install-from-nonstandard-brewfile.md @@ -0,0 +1,25 @@ +# Install From Nonstandard Brewfile + +When you want to install the packages listed in the `Brewfile` for your current +project (or dotfiles), you can run: + +```bash +$ brew bundle +``` + +And `brew` knows to look for and use the `Brewfile` in the current directory. + +If, however, you are trying to run `brew bundle` for a `Brewfile` located +somewhere besides the current directory *OR* you want to target a file with a +non-standard name (like +[`Brewfile.personal`](https://github.com/jbranchaud/dotfiles/blob/main/Brewfile.personal)), +then you can use the `--file` flag. + +```bash +$ brew bundle --file Brewfile.personal +``` + +This is what I do [here in my `dotfiles` +repo](https://github.com/jbranchaud/dotfiles/blob/b053f6251cae7ed52f698fc2a2c40ba82c5881b0/installer/mac-setup.sh#L42-L48). + +See `man brew` and find the section on `brew bundle` for more details.