Git repository information inside a shell prompt.
cargo install --git https://github.com/Joker/git_prompt
or
make install
~/.zshrc
setopt PROMPT_SUBST
PROMPT=$'%n@%m %2~ \$(git_prompt zsh) $ '
~/.bashrc
PS1='\u@\h \W $(git_prompt) \$ '