diff --git a/README.md b/README.md index 68a4772..03812bf 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1388 TILs and counting..._ +_1389 TILs and counting..._ --- @@ -19,6 +19,7 @@ _1388 TILs and counting..._ * [Ack](#ack) * [Amplify](#amplify) * [Ansible](#ansible) +* [Brew](#brew) * [Chrome](#chrome) * [Clojure](#clojure) * [CSS](#css) @@ -94,6 +95,10 @@ _1388 TILs and counting..._ - [Loop Over A List Of Dictionaries](ansible/loop-over-a-list-of-dictionaries.md) +### Brew + +- [Configure Brew Environment Variables](brew/configure-brew-environment-variables.md) + ### Chrome - [Access A Value Logged To The Console](chrome/access-a-value-logged-to-the-console.md) diff --git a/brew/configure-brew-environment-variables.md b/brew/configure-brew-environment-variables.md new file mode 100644 index 0000000..063bcbd --- /dev/null +++ b/brew/configure-brew-environment-variables.md @@ -0,0 +1,28 @@ +# Configure Brew Environment Variables + +The `brew` CLI can be configured with a ton of different environment variables. +A full listing of those can be found in the [Environment section of their +docs](https://docs.brew.sh/Manpage#environment). + +If you want to change the defaults of any of those values, you can either set +them directly in your environment: + +```bash +$ set HOMEBREW_BAT=1 +``` + +Or you can set them in a more dedicated place like one of Homebrew's +environment files. There are a couple possible locations for these files. I +prefer to use `$HOME/.homebrew/brew.env` (i.e. `~/.homebrew/brew.env`). + +``` +HOMEBREW_BAT=1 +``` + +This file and directly likely don't exist, so you may have to set them up the +first time: + +``` +$ mkdir $HOME/.homebrew +$ touch $HOME/.homebrew/brew.env +```