aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2011-11-10 23:47:04 -0600
committerJack Nagel2011-11-11 00:01:05 -0600
commit0474fa11cd88ef04c3e3d77d37bd440e2790984b (patch)
tree6b5d41d207db698f9617a55064207651fa2ad26a /Library/Homebrew
parent6b9fa0b818117bbc5221bd38594bbb10d507a1f8 (diff)
downloadbrew-0474fa11cd88ef04c3e3d77d37bd440e2790984b.tar.bz2
completion: add __brew_ps1 to annotate $PS1
It is often useful to be reminded that you are, in fact, in the middle of a debug or interactive install. We provided this reminder in the form of HOMEBREW_DEBUG_INSTALL, but we can make this even easier for the end user to consume by exposing it in the form of a shell function. When HOMEBREW_DEBUG_INSTALL is set, the __brew_ps1() function returns the string "(formula_name|DEBUG)" by default (much like the __git_ps1() output when performing some long-running operation, e.g. "(branch|REBASE-i)". The formatting around "formula_name|DEBUG" can be customized by passing a format string to the function. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
0 files changed, 0 insertions, 0 deletions