A simple perl script to beautify git prompt status in BASH. This makes it easier to manage repos using some additional information.
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]
> _