Archived, use instead of promt-line
go-git-prompt
Informative and fast Git prompt for any shell (Bash, Zsh, and PowerShell). Inspired by zsh-git-prompt and ubnt-intrepid/go-git-prompt
Example
Usage
Bash:
PS1='\w \$(git-prompt) % '
Zsh:
PROMPT='%~ $(git-prompt) %% '
Fish:
function fish_prompt
echo (git-prompt)" % "
end
PowerShell:
function prompt {
write-host "$(pwd) " -nonewline
write-host (git-prompt) -nonewline
return "`n> "
}
Install
$ go get -v github.com/Ak-Army/git-prompt
License
This software is released under the MIT license. See LICENSE for details.