Skip to content

Informative and fast Git prompt for any shell (Bash, Zsh, and PowerShell)

License

Notifications You must be signed in to change notification settings

ubnt-intrepid/go-git-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-git-prompt

Build Status Coverage Status

Informative and fast Git prompt for any shell (Bash, Zsh, and PowerShell).

This project is inspired from oliviervedier's zsh-git-prompt.

Usage

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> "
}

Install

$ go get -v github.com/ubnt-intrepid/go-git-prompt

License

This software is released under the MIT license. See LICENSE for details.

About

Informative and fast Git prompt for any shell (Bash, Zsh, and PowerShell)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages