# 使用 Homebrew, Nix, zypper 安装 bash-git-prompt

查看 bash-git-prompt 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: bash-git-prompt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:bash-git-prompt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bash-git-prompt>
- **版本:** 2.7.1
- **来源摘要:** Nucleus package metadata for bash-git-prompt, from local Automic Vault package sources.
- **主页:** <https://github.com/magicmonty/bash-git-prompt>
- **仓库:** <https://github.com/magicmonty/bash-git-prompt>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/magicmonty/bash-git-prompt/archive/refs/tags/2.7.1.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 安装行为

- post-install 钩子: 未定义
- 注意事项: 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: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.7.1
- 本地数据: OK
- 上游仓库: https://github.com/magicmonty/bash-git-prompt
- 检测到的最新版本: 2.7.1 (当前)
- 信息: No package-manager update timestamp was available.

## 安全说明

没有找到 bash-git-prompt 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **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

## 其他软件包管理器记录

- 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.2: normalized package name match | openSUSE Tumbleweed package metadata: bash-git-prompt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Informative git prompt for bash and fish | https://github.com/magicmonty/bash-git-prompt


## 相关链接

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

## 来源

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