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 https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
Then add to the
GIT_PROMPT_ONLY_IN_REPO=1 source ~/.bash-git-prompt/gitprompt.sh