Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 616 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 616 Bytes

Git Prompt

A simple perl script to beautify git prompt status in BASH. This makes it easier to manage repos using some additional information.

Setup

in $HOME/.bashrc or in $HOME/.bash_profile depends on what is used in your system the PS1 variable should be set to include a git-prompt-status.pl. For example:

GIT_PROMPT="/path/to/git-prompt-status.pl"
PS1="\h@[\w]\n\$($GIT_PROMPT)\n> "

#####Result in the repo:

userhostname@[/home/gituser/repos/project]
[ test22 | 65bce87 ][D-:1][M-:1][N+:1][D+:1][M+:1] 
> _

git prompt status