diff --git a/docs/Manpage.md b/docs/Manpage.md index e1928d2fe1..e0ae3b7c60 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -634,7 +634,7 @@ is flanked by slashes, it is interpreted as a regular expression. * `--ubuntu`: Search for *`text`* in the given database. -### `shellenv` +### `shellenv [bash|csh|fish|pwsh|sh|tcsh|zsh]` Print export statements. When run in a shell, this installation of Homebrew will be added to your `PATH`, `MANPATH`, and `INFOPATH`. @@ -643,6 +643,8 @@ To help guarantee idempotence, this command produces no output when Homebrew's ` respectively in your `PATH`. Consider adding evaluation of this command's output to your dotfiles (e.g. `~/.profile`, `~/.bash_profile`, or `~/.zprofile`) with: `eval "$(brew shellenv)"` +The shell can be specified explicitly with a supported shell name parameter. Unknown shells will output POSIX exports. + ### `tap` [*`options`*] [*`user`*`/`*`repo`*] [*`URL`*] Tap a formula repository. diff --git a/manpages/brew.1 b/manpages/brew.1 index d068480138..3a02e79a14 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -898,12 +898,15 @@ Search for \fItext\fR in the given database\. \fB\-\-ubuntu\fR Search for \fItext\fR in the given database\. . -.SS "\fBshellenv\fR" +.SS "\fBshellenv [bash|csh|fish|pwsh|sh|tcsh|zsh]\fR" Print export statements\. When run in a shell, this installation of Homebrew will be added to your \fBPATH\fR, \fBMANPATH\fR, and \fBINFOPATH\fR\. . .P The variables \fBHOMEBREW_PREFIX\fR, \fBHOMEBREW_CELLAR\fR and \fBHOMEBREW_REPOSITORY\fR are also exported to avoid querying them multiple times\. To help guarantee idempotence, this command produces no output when Homebrew\'s \fBbin\fR and \fBsbin\fR directories are first and second respectively in your \fBPATH\fR\. Consider adding evaluation of this command\'s output to your dotfiles (e\.g\. \fB~/\.profile\fR, \fB~/\.bash_profile\fR, or \fB~/\.zprofile\fR) with: \fBeval "$(brew shellenv)"\fR . +.P +The shell can be specified explicitly with a supported shell name parameter\. Unknown shells will output POSIX exports\. +. .SS "\fBtap\fR [\fIoptions\fR] [\fIuser\fR\fB/\fR\fIrepo\fR] [\fIURL\fR]" Tap a formula repository\. .