git-prompt

command module
v0.0.0-...-6e81337 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 4 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL