diff --git a/Library/Homebrew/manpages/brew.1.md b/Library/Homebrew/manpages/brew.1.md index 0214ac5fc4..b4a5ad0f95 100644 --- a/Library/Homebrew/manpages/brew.1.md +++ b/Library/Homebrew/manpages/brew.1.md @@ -440,7 +440,8 @@ Note that these flags should only appear after a command. Display the file or directory used to cache . * `--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` : Display the location in the cellar where would be installed, diff --git a/share/doc/homebrew/External-Commands.md b/share/doc/homebrew/External-Commands.md index 20533ee469..4166300cf0 100644 --- a/share/doc/homebrew/External-Commands.md +++ b/share/doc/homebrew/External-Commands.md @@ -31,7 +31,7 @@ A shell script for an command named `extcmd` should be named `brew-extcmd`. This HOMEBREW_CELLAR - The location of the Homebrew Cellar, where software is staged, by default /usr/local/Cellar. + The location of the Homebrew Cellar, where software is staged. This will be $HOMEBREW_PREFIX/Cellar if that directory exists, or $HOMEBREW_REPOSITORY/Cellar otherwise. HOMEBREW_LIBRARY_PATH @@ -39,7 +39,7 @@ A shell script for an command named `extcmd` should be named `brew-extcmd`. This HOMEBREW_PREFIX - Where Homebrew installs software to, by default /usr/local. + Where Homebrew installs software. This is always the grandparent directory of the `brew` executable, /usr/local by default. HOMEBREW_REPOSITORY