Informative and fast Git prompt for any shell (Bash, Zsh, and PowerShell).
This project is inspired from oliviervedier's zsh-git-prompt.
Bash:
PS1='\w $(go-git-prompt) % '
Zsh:
PROMPT='%~ $(go-git-prompt) %% '
Fish:
function fish_prompt
echo (go-git-prompt)" % "
end
PowerShell:
function prompt {
write-host "$(pwd) " -nonewline
write-host (go-git-prompt) -nonewline
return "`n> "
}
$ go get -v github.com/ubnt-intrepid/go-git-prompt
This software is released under the MIT license. See LICENSE for details.