vcprompt

Display version control repository info in your shell prompt

brewmacoslinux
Try with needOr install directly
Source

About

Provide version control info in shell prompts

Commands

vcprompt

Examples

Add repository branch and status to bash prompt$ export PS1='[$(vcprompt)] \u@\h:\w$ '
Show git branch and dirty status in zsh prompt$ PROMPT='%F{blue}$(vcprompt)%f %# '
Display Mercurial changeset info in prompt$ vcprompt -f '%b:%r' # in hg repository