To use it: source into your .zshrc file. And add to your PS1.
For example:
PS1="$(git_prompt) %"
source ${ZDOTDIR:-$HOME/.zsh}/git-prompt.zsh/git-prompt.zshThis sections is just for convenience sake. Just copy a command and paste it into your terminal.
git clone git@github.com:devkcud/git-prompt.zsh.git ${ZDOTDIR:-$HOME/.zsh}/git-prompt.zshgit clone https://github.com/devkcud/git-prompt.zsh.git ${ZDOTDIR:-$HOME/.zsh}/git-prompt.zshgh repo clone devkcud/git-prompt.zsh ${ZDOTDIR:-$HOME/.zsh}/git-prompt.zsh