shellenv: improve --help formatting.

This commit is contained in:
Mike McQuaid 2019-01-30 21:31:33 +00:00
parent 04f3ca78c0
commit 2a676dd94c
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -1,12 +1,10 @@
#: * `shellenv`:
#: Prints export statements - run them in a shell and this installation of
#: Homebrew will be included into your PATH, MANPATH, and INFOPATH.
#: * `shellenv`
#:
#: HOMEBREW_PREFIX, HOMEBREW_CELLAR and HOMEBREW_REPOSITORY are also exported
#: to save multiple queries of those variables.
#: Prints export statements - run them in a shell and this installation of Homebrew will be included into your `PATH`, `MANPATH` and `INFOPATH`.
#:
#: Consider adding evaluating the output in your dotfiles (e.g. `~/.profile`)
#: with `eval $(brew shellenv)`
#: `HOMEBREW_PREFIX`, `HOMEBREW_CELLAR` and `HOMEBREW_REPOSITORY` are also exported to save multiple queries of those variables.
#:
#: Consider adding evaluating the output in your dotfiles (e.g. `~/.profile`) with `eval $(brew shellenv)`
homebrew-shellenv() {
echo "export HOMEBREW_PREFIX=\"$HOMEBREW_PREFIX\""