Add Git Changes to Bash in Ubuntu

This is a follow up post to adding git changes to bash from couple month ago.

I wrote that I was missing posh-git extension in bash and guess what happened. David Xu implemented a wonderful clone of the PowerShell version called posh-git-bash.

Installation is really simple, just clone the project into your home directory.

git clone

And the only thing you need to do in Ubuntu to run it is modifying the .bashrc file.

source ~/posh-git-bash/
PROMPT_COMMAND='__git_ps1 "\w" "\\\$ "'

No more forgotten commits. Amazing script that would make your day better.

Would you like to get the most interesting content about programming every Monday?
Sign up to Programming Digest and stay up to date!