jimeh/git-aware-prompt
Display current Git branch name in your terminal prompt when in a Git working directory. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6137
- days_rel: n/a
- days_push: 1086
- n_releases_24m: 0
Adoption not part of the score
2161 stars · 332 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
cli-tool · maturity maintenance
developer-tools terminal-ui version-control developer-tools version-control windows cli shell bash prompt git-branch ps1 command-line linux macos
1 source
- readme: https://github.com/jimeh/git-aware-prompt · fetched 2026-08-28 · ca5801b5e6bf
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jimeh/git-aware-prompt | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="jimeh/git-aware-prompt")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem