More explanation of HOMEBREW_{CELLAR,PREFIX,REPOSITORY}

Closes Homebrew/homebrew#39447.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Larry Gilbert 2015-05-06 10:35:35 -07:00 committed by Dominyk Tiller
parent dd1a9e11ab
commit 5345c06e63
2 changed files with 4 additions and 3 deletions

View File

@ -440,7 +440,8 @@ Note that these flags should only appear after a command.
Display the file or directory used to cache <formula>.
* `--cellar`:
Display Homebrew's Cellar path. *Default:* `/usr/local/Cellar`
Display Homebrew's Cellar path. *Default:* `$(brew --prefix)/Cellar`, or if
that directory doesn't exist, `$(brew --repository)/Cellar`.
* `--cellar` <formula>:
Display the location in the cellar where <formula> would be installed,

View File

@ -31,7 +31,7 @@ A shell script for an command named `extcmd` should be named `brew-extcmd`. This
</tr>
<tr>
<td>HOMEBREW_CELLAR</td>
<td>The location of the Homebrew Cellar, where software is staged, by default <code>/usr/local/Cellar</code>.</td>
<td>The location of the Homebrew Cellar, where software is staged. This will be <code>$HOMEBREW_PREFIX/Cellar</code> if that directory exists, or <code>$HOMEBREW_REPOSITORY/Cellar</code> otherwise.</td>
</tr>
<tr>
<td>HOMEBREW_LIBRARY_PATH</td>
@ -39,7 +39,7 @@ A shell script for an command named `extcmd` should be named `brew-extcmd`. This
</tr>
<tr>
<td>HOMEBREW_PREFIX</td>
<td>Where Homebrew installs software to, by default <code>/usr/local</code>.</td>
<td>Where Homebrew installs software. This is always the grandparent directory of the `brew` executable, <code>/usr/local</code> by default.</td>
</tr>
<tr>
<td>HOMEBREW_REPOSITORY</td>