Perfect bash PS1 with git repos handling

I want to share my PS1 configuration set :

You got something like this :

In case you have nothing pending to commit :

~/Devel/MyGitRepos {MyCurrentBranch} $ YOUR COMMAND

If you have something pending to commit :

~/Devel/MyGitRepos {MyCurrentBranch} $ YOUR COMMAND

When you are not in a git repository :

~/Devel/MyGitRepos $ YOUR COMMAND

Enjoy ! Celogeek

Short URL: http://sck.pm/gmTJ

One Pingback/Trackback