FORMULAv2.7.1
bash-git-prompt for macOS
Informative, fancy bash prompt for Git users
Installation on macOS (Apple Silicon & Intel)
brew install bash-git-prompt
Package Metadata
| Identifier | bash-git-prompt |
|---|---|
| Current Version | 2.7.1 |
| Tap Repository | homebrew/core |
| License | BSD-2-Clause |
| Upstream Homepage | https://github.com/magicmonty/bash-git-prompt |
| Last Verified | 2026-11-26T14:43:31Z |
Engineering Caveats
You should add the following to your .bashrc (or .bash_profile):
if [ -f "$HOMEBREW_PREFIX/opt/bash-git-prompt/share/gitprompt.sh" ]; then
__GIT_PROMPT_DIR="$HOMEBREW_PREFIX/opt/bash-git-prompt/share"
source "$HOMEBREW_PREFIX/opt/bash-git-prompt/share/gitprompt.sh"
fiRelated macOS Packages
bash-completion@2Programmable completion for Bash 4.2+bash-language-serverLanguage Server for Bashbash-completionProgrammable completion for Bash 3.2bash-preexecPreexec and precmd functions for Bash (like Zsh)bashBourne-Again SHell, a UNIX command interpreterbash-snippetsCollection of small bash scripts for heavy terminal usersbasexLight-weight XML database and XPath/XQuery processorbash_unitBash unit testing enterprise edition framework for professionals