# 使用 Homebrew, Nix 安装 vcprompt

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

## 安装

```sh
sudo av install brew:vcprompt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vcprompt
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#vcprompt
```

  证据: nixpkgs package indexes: pkgs/by-name/vc/vcprompt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:vcprompt
- **软件包管理器:** Homebrew
- **版本:** 1.3.0
- **来源摘要:** Provide version control info in shell prompts
- **主页:** <https://github.com/powerman/vcprompt>
- **仓库:** <https://github.com/powerman/vcprompt>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- vcprompt (别名)
- vcprompt-hgst (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.0
## 项目历史与用法

vcprompt is a small command-line helper for showing version-control state in a shell prompt. The powerman repository presents it as a fork of Greg Ward's vcprompt, preserving the original idea of being lightweight rather than comprehensive.

### 项目历史

The powerman/vcprompt GitHub repository was created on 2013-12-22. Its README explains the fork in pragmatic performance terms: prompt helpers run every time a user gets a new shell prompt, so slow repository-status checks become noticeable quickly.

### 使用方式

vcprompt is used inside shell prompt definitions to print repository information such as the current version-control system and branch/status markers. The README lists support, to varying degrees, for Mercurial, Git, Subversion, CVS, and Fossil working copies.

### 为什么软件包爱好者会关心

Its significance is niche but clear: vcprompt belongs to the pre-heavy-shell-theme era of tiny POSIX prompt utilities. It is the kind of tool package users install when they want repository awareness without adopting a full prompt framework.

### 时间线

- 2013-12-22: The powerman/vcprompt repository was created on GitHub.
- 2021-10-10: The repository's latest pushed_at timestamp in GitHub API metadata shows later maintenance activity, though the public footprint remains small.

### 来源

- <https://api.github.com/repos/powerman/vcprompt>
- <https://github.com/powerman/vcprompt>


## 安全说明

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

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

- Nix - vcprompt: normalized package name match | nixpkgs package indexes: pkgs/by-name/vc/vcprompt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/vcprompt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/vcprompt.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
