diff --git a/README.md b/README.md index 5e7b6f2..82a3655 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,13 @@ ln -s ~/.local/share/gitmux ~/.local/bin/gitmux # confirm gitmux -V ``` + +## display git info on terminal prompt + +Add the following to your `.bashrc` + +```bash +export GIT_PS1_DESCRIBE_STYLE="default" +source /etc/bash_completion.d/git-prompt +PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[01;31m\]$(__git_ps1 " (%s)")\[\033[00m\]\$ ' +```