- use e.g. `$HOMEBREW_*` for cases where only the environment variable
is the entire backtick-quoted string
- use e.g. `${HOMEBREW_*}` for cases where the environment variable is
part of a backtick-quoted string to make clear what parts are variable
and what parts are not
- use `export HOMEBREW_*=...` for cases where we're talking about
setting the environment variable (because it likely needs to be
exported to work how they want)
Inspired by https://github.com/Homebrew/homebrew-bundle/pull/1579 making
similar changes for Homebrew/homebrew-bundle.
Add these commands to ease use of Homebrew's bottles with `rbenv` and
`nodenv`.
I've had a lot of people request this over the years and it's worked
well for me for a long time.
I could see people extending these to support other languages or version
managers so perhaps we want a more generic name.
Co-authored-by: Rylan Polster <rslpolster@gmail.com>