aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2011-11-10 23:47:04 -0600
committerJack Nagel2011-11-11 00:01:05 -0600
commit742fffbb190dcf371c89de2f2fa683f78df77e84 (patch)
treed6644264fa1162c42dc5c1e6b43943ac516d3223 /Library/Formula
parenta077f71502d565223e4f26e9e1b3efdeba801bf0 (diff)
downloadhomebrew-742fffbb190dcf371c89de2f2fa683f78df77e84.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/Formula')
0 files changed, 0 insertions, 0 deletions