Skip to content

A simple perl script to beautify git status in the prompt

License

Notifications You must be signed in to change notification settings

olksdr/git-prompt-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple perl script to beautify git status in the prompt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages