Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. ZSH Plugins
  3. git-prompt (olivierverdier)

git-prompt (olivierverdier)

MITHaskellv0.5

A Zsh prompt that displays detailed Git repository status including branch, remote tracking, staged files, and changes.

GitHubGitHub
1.8k stars393 forks0 contributors

What is git-prompt (olivierverdier)?

zsh-git-prompt is a Zsh shell extension that enhances the terminal prompt with detailed Git repository status information. It displays the current branch, remote tracking differences, and counts of staged, changed, and untracked files directly in the prompt. This eliminates the need to manually run Git status commands to understand the repository state.

Target Audience

Developers using Zsh who work frequently with Git repositories and want immediate visibility into their repository status without leaving the terminal. It's particularly useful for those managing complex branching workflows or multiple simultaneous changes.

Value Proposition

It provides a comprehensive, at-a-glance view of Git status that's more detailed than most built-in prompts, with customizable symbols and optional performance optimization through a Haskell implementation. The project is lightweight, integrates seamlessly with existing Zsh configurations, and improves developer workflow efficiency.

Overview

Informative git prompt for zsh

Use Cases

Best For

  • Enhancing Zsh prompts with detailed Git status information
  • Quickly assessing repository state during complex Git workflows
  • Reducing terminal clutter by embedding Git info in the prompt
  • Monitoring remote branch synchronization while working
  • Tracking staged and unstaged file counts during development
  • Customizing terminal appearance with Git-aware prompts

Not Ideal For

  • Users working with shells other than Zsh, such as Bash or Fish
  • Developers who prefer minimal, unobtrusive terminal prompts without detailed Git information
  • Teams requiring easy, automated installation via package managers like Homebrew or apt

Pros & Cons

Pros

Comprehensive Status Display

Shows branch name, remote ahead/behind counts, and specific file statuses like staged, changed, and untracked, providing immediate repository insights without extra commands.

Highly Customizable Appearance

Allows modification of symbols and layout through Zsh variables, enabling users to tailor the prompt's look and information order to their preferences.

Optional Performance Boost

Haskell implementation reduces Git calls to once per prompt update, making it significantly faster, especially in large repositories, as noted in the README.

Cons

Manual Setup Required

Requires cloning the repository, sourcing scripts in .zshrc, and potentially editing configuration files, lacking a simple one-command installation method.

Zsh-Only Compatibility

Exclusively designed for Zsh, making it unusable with other shells and limiting portability for users in mixed shell environments.

Haskell Dependency Complexity

For optimal performance, users must install and maintain Haskell stack, adding an extra layer of setup and potential maintenance overhead.

Frequently Asked Questions

Quick Stats

Stars1,777
Forks393
Contributors0
Open Issues35
Last commit2 years ago
CreatedSince 2010

Tags

#haskell#shell-tools#terminal-enhancement#zsh-prompt#developer-productivity#git-status#python#command-line#git-integration

Built With

S
Stack
H
Haskell
z
zsh
P
Python

Included in

ZSH Plugins17.6k
Auto-fetched 2 hours ago

Related Projects

powerlevel10kpowerlevel10k

A Zsh theme

Stars54,779
Forks2,432
Last commit1 month ago
spaceshipspaceship

🚀✨ Minimalistic, powerful and extremely customizable Zsh prompt

Stars20,546
Forks970
Last commit9 days ago
purepure

Pretty, minimal and fast ZSH prompt

Stars14,360
Forks1,008
Last commit7 days ago
powerlevel9kpowerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.

Stars13,423
Forks915
Last commit6 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub