Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Ak-Army/git-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

git-prompt screenshot

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages