CocoaEngineering
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

Identifierbash-git-prompt
Current Version2.7.1
Tap Repositoryhomebrew/core
LicenseBSD-2-Clause
Upstream Homepagehttps://github.com/magicmonty/bash-git-prompt
Last Verified2026-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"
  fi
Browse macOS Packages A–Z