How do I "set" HOMEBREW_UPGRADE_CLEANUP"?


#1

If --cleanup is specified or HOMEBREW_UPGRADE_CLEANUP is set then remove
previously installed formula version(s).

options/ideas:
export var
set var
var=0

Should this be made more clear?

PR.


(Jonathan Chang) #2

brew man suggests HOMEBREW_UPGRADE_CLEANUP=1

ENVIRONMENT
Note that environment variables must have a value set to be detected.
For example, export HOMEBREW_NO_INSECURE_REDIRECT=1 rather than just
export HOMEBREW_NO_INSECURE_REDIRECT.


#3

Interesting @jonchang, thanks! I assumed 0 as that signifies truthy in bash but I suppose the value doesn’t matter.