meta data for this page

Adding useful git prompt to debian bash

Sometimes it would be comfortable to have information of a git repo when navigating through a repo in a bash shell.

Install in home directory

First clone the scripts from magicmonty into your home dir:

git clone ~/.bash-git-prompt --depth=1

Then add to the ~/.bashrc

source ~/.bash-git-prompt/

After that restart bash and have a fancy git prompt like this: