zsh-git-prompt is a Z shell prompt script that displays rich Git repository information in your shell prompt, such as branch, ahead/behind status, staged changes, conflicts, and more. It enhances developer productivity in version-controlled workflows. There is now a Haskell implementation as well, which can be four to six times faster than the Python one. The reason is not that Haskell is faster in itself (although it is), but that this implementation calls git only once. You may redefine the function git_super_status (after the source statement) to adapt it to your needs (to change the order in which the information is displayed).
Features
- Shows current Git branch in the prompt
- Indicates distance to remote branches (ahead/behind) with visual symbols
- Displays number of staged, modified, untracked, and conflicted files
- Supports summary display when working on detached HEAD (commit hash shown)
- Simple integration via sourcing zshrc.sh in .zshrc
- Packaged for systems like Homebrew with easy install (brew install zsh-git-prompt)
Categories
GitLicense
MIT LicenseFollow zsh-git-prompt
Other Useful Business Software
Our Free Plans just got better! | Auth0
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of zsh-git-prompt!