mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Configure Brew Environment Variables as a Brew TIL
This commit is contained in:
28
brew/configure-brew-environment-variables.md
Normal file
28
brew/configure-brew-environment-variables.md
Normal file
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user