Tap the keg:
brew tap nhemsley/homebrew-env https://github.com/nhemsley/homebrew-env.gitInstall:
brew install homebrew-envCache the shellenv:
brew env recachePut this in ~/.bashrc OR ~/.profile etc.
. $(brew env source-file)Show the shellenv
brew env shellenvEdit $HOMEBREW_PREFIX/etc/brew-env/presets.yaml to create/change environment scripts.
They key is the same as the brew installed package name.
Not hard.
PR's welcome for presets.yaml updates, and anything else.