On one level, bash-git-prompt isn't very impressive. The changes it makes to your terminal aren't the kind of eye candy other, more ambitious, shell prompt customizers like Powerline and its derivatives provide. But it is useful.
In fact, for me it turns out to be more useful than Powerline because it conveys a lot of information while remaining relatively unobtrusive. It also doesn't require any special fonts.
Steps to install and enable it on Linux, from the README on github:
- Download the repo into the root of your user's home directory as a "dot" folder:
$ git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
- Tack this initializing code to the end of your user's .bashrc:
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
GIT_PROMPT_ONLY_IN_REPO=1
source $HOME/.bash-git-prompt/gitprompt.sh
fi
That's it!
There are a number of tweaks you can make to it, but for me the defaults work just fine.