bash-git-prompt
« Back to VersTracker
Description:
Informative, fancy bash prompt for Git users
Type: Formula  |  Latest Version: 2.7.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: bash git prompt shell developer-tools
Install: brew install bash-git-prompt
About:
bash-git-prompt is a dynamic prompt generator for Bash that displays detailed Git repository status information directly in your command line. It shows branch names, commit counts, and changes, helping developers quickly understand their repository state. The tool is highly customizable and designed to be informative without cluttering the terminal.
Key Features:
  • Displays Git status (branch, ahead/behind, staged/unstaged changes)
  • Configurable prompt appearance and symbols
  • Lightweight with no external dependencies beyond Git
  • Supports custom status indicators
Use Cases:
  • Daily development workflow to monitor Git repository state
  • Managing multiple branches and tracking changes efficiently
Alternatives:
  • starship – Cross-shell prompt with more extensive features but higher complexity
  • pure – Minimalist prompt focused on speed and simplicity
License: BSD-2-Clause
Bottles available for: all
Important Notes:
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
Version History
Detected Version Rev Change Commit