Settings

Following environmental variables can be used.

Name, Description, Default

HOMEBREW_BREWFILE

Set place of Brewfile.

"~/brewfile/Brewfile"

HOMEBREW_BREWFILE_BACKUP

If it is set to not empty, Brewfile’s back up is made to HOMEBREW_BREWFILE_BACKUP when Brewfile is updated.

""

HOMEBREW_BREWFILE_LEAVES

Set 1 if you want to list up only leaves (formulae which is not listed in dependencies of any other packages, taken by brew leaves).

0

HOMEBREW_BREWFILE_ON_REQUEST

Set 1 if you want to list up only packages installed on request. If both LEAVES and ON_ERQUEST are 1, brew leaves –installed-on-request list is used (this list may omit packages what you installed on request but the dependencies of other installed packages). Note: This list can be changed if packages installed by brew-file in new machine. (some “on_request” package could be installed as “as_dependencies” of others before being installed on request.)

0

HOMEBREW_BREWFILE_TOP_PACKAGES

Packages which are listed in Brewfile even if leaves is used and they are under dependencies. (Useful for such go, which is used by itself, but some packages depend on it, too.)

""

HOMEBREW_BREWFILE_FULL_NAME

Set 1 if you want write full names (tap/package) of packages.

0

HOMEBREW_BREWFILE_FETCH_HEAD

Set 1 if you want to use –fetch-HEAD for brew upgrade option at brew file update.

HOMEBREW_BREWFILE_EDITOR

Set editor to be used by brew file edit. If you use brew-wrap or call brew-file directly, the environmental variable EDITOR also works. If you do not use brew-file and do not set this variable, EDITOR does not work and the system default editor will be used.

""

HOMEBREW_BREWFILE_VERBOSE

Set verbose level (“debug”, “info”, “warning”, “error”, “critical”).

info

HOMEBREW_BREWFILE_APPSTORE

Set Appstore application management level. 0: do not, 1: manage fully, 2: use list to install, but do not update by init command even if new App is added (but package is removed from the list at brew file brew mas uninstall <app id>).

1

HOMEBREW_BREWFILE_WHALEBREW

Set 1 if you want to manage whalebrew images by brew-file.

0

HOMEBREW_BREWFILE_VSCODE

Set 1 if you want to manage vscode (VSCode) extensions by brew-file.

0

HOMEBREW_BREWFILE_CURSOR

Set 1 if you want to manage cursor (Cursor) extensions by brew-file.

0

HOMEBREW_BREWFILE_CODIUM

Set 1 if you want to manage codium (VSCodium) extensions by brew-file.

0

HOMEBREW_BREWFILE_DESCRIBE

Set 1 if you want to add description comments for each package in Brewfile.

0

HOMEBREW_CASK_OPTS

This is Cask’s option to set cask environment. If appdir or fontdir is set with these options, Brew-file uses these values in it.

""