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.zsh
This sections is just for convenience sake. Just copy a command and paste it into your terminal.
git clone [email protected]:devkcud/git-prompt.zsh.git ${ZDOTDIR:-$HOME/.zsh}/git-prompt.zsh
git clone https://github.com/devkcud/git-prompt.zsh.git ${ZDOTDIR:-$HOME/.zsh}/git-prompt.zsh
gh repo clone devkcud/git-prompt.zsh ${ZDOTDIR:-$HOME/.zsh}/git-prompt.zsh