# Install bash-git-prompt with Homebrew, Nix, zypper

Informative, fancy bash prompt for Git users. Version 2.7.1 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#bash-git-prompt.

## Install

```sh
sudo av install brew:bash-git-prompt
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bash-git-prompt
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bash-git-prompt
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ba/bash-git-prompt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install bash-git-prompt
```

  Evidence: openSUSE Tumbleweed package metadata: bash-git-prompt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:bash-git-prompt
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/bash-git-prompt>
- **Version:** 2.7.1
- **Source summary:** Informative, fancy bash prompt for Git users
- **Homepage:** <https://github.com/magicmonty/bash-git-prompt>
- **Repository:** <https://github.com/magicmonty/bash-git-prompt>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/magicmonty/bash-git-prompt/archive/refs/tags/2.7.1.tar.gz>
- **Generated:** 2026-08-04T22:13:35+00:00

## Install behavior

- Post-install hook: not defined
- 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
- Bottle: available on all

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 2.7.1
- Local data: ok
- Upstream repository: https://github.com/magicmonty/bash-git-prompt
- Upstream latest detected: 2.7.1 (current)
- info: No package-manager update timestamp was available.

## Security Notes

No matching local secret-handling manifest was found for bash-git-prompt. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bash-git-prompt
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - bash-git-prompt: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bash-git-prompt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - bash-git-prompt - 2.7.1-4.3: normalized package name match | openSUSE Tumbleweed package metadata: bash-git-prompt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Informative git prompt for bash and fish | https://github.com/magicmonty/bash-git-prompt


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [bash-snippets](https://pkg.so/brew/bash-snippets/) - Package names and metadata indicate a similar tool family. Shared terms: bash, users.
- [bash-completion@2](https://pkg.so/brew/bash-completion-2/) - Package names and metadata indicate a similar tool family. Shared terms: bash.
- [bash-language-server](https://pkg.so/brew/bash-language-server/) - Package names and metadata indicate a similar tool family. Shared terms: bash.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
