# jimeh/git-aware-prompt

Display current Git branch name in your terminal prompt when in a Git working directory.

Repository: https://github.com/jimeh/git-aware-prompt
Canonical: https://ross.abutalabs.com/products/git-aware-prompt
Language: Shell
License: CC0-1.0
License Family: permissive
Last push: 2023-09-13T01:21:48+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6137, "days_push": 1086, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2161, forks 332 (observed 2026-08-28T04:06:20.989103+00:00)

## What it is
A small shell script project that displays the current Git branch name (and dirty state) in your terminal prompt when inside a Git working directory. It exposes $git_branch and $git_dirty variables for use in PS1 with easy installation for bash on macOS, Linux, and Windows.

## Use cases
- show current git branch in terminal prompt
- see which branch I'm on without running git status
- customize bash PS1 with git branch info
- indicate dirty working directory in prompt
- easy git prompt setup for bash

## When to choose
- you use bash and want a simple, lightweight git-aware prompt
- you want minimal configuration without switching shells or frameworks
- you prefer a plain script over prompt frameworks like oh-my-zsh

## When to avoid
- you use zsh or fish rather than bash
- you want a full prompt framework with themes and powerline support
- you need support for other VCSs like Mercurial or SVN

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, terminal-ui, version-control
- domain: developer-tools, version-control
- platform: windows, cli
- tags: shell, bash, prompt, git-branch, ps1, command-line, linux, macos

## Member repositories
- jimeh/git-aware-prompt (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:20.989103+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:50:15.680310+00:00, confidence not recorded.
  - readme: https://github.com/jimeh/git-aware-prompt (fetched 2026-08-28T04:06:20.989103+00:00, sha ca5801b5e6bf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
