Skip to content

Instantly share code, notes, and snippets.

@mrgnw
Last active December 20, 2023 06:47
Show Gist options
  • Save mrgnw/ca42df967e99af781a7fe6c00938305f to your computer and use it in GitHub Desktop.
Save mrgnw/ca42df967e99af781a7fe6c00938305f to your computer and use it in GitHub Desktop.
homebrew env

Homebrew 4.2.0 added .env support (2023-12-18

  • system-wide: /etc/homebrew/brew.env
  • prefix-specific $HOMEBREW_PREFIX/etc/homebrew/brew.env
  • user-specific: ~/.homebrew/brew.env

I removed these exports from my dotfiles

- export HOMEBREW_INSTALL_BADGE=🍦
- export HOMEBREW_AUTO_UPDATE_SECS=300
- export HOMEBREW_CLEANUP_MAX_AGE_DAYS=15
- export HOMEBREW_DISPLAY_INSTALL_TIMES=1
- export HOMEBREW_INSTALL_FROM_API=1
- export HOMEBREW_NO_GITHUB_API=1

…and put them in the brew.env below

HOMEBREW_INSTALL_BADGE=🍦
HOMEBREW_AUTO_UPDATE_SECS=300
HOMEBREW_CLEANUP_MAX_AGE_DAYS=15
HOMEBREW_DISPLAY_INSTALL_TIMES=1
HOMEBREW_INSTALL_FROM_API=1
HOMEBREW_NO_GITHUB_API=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment