Run the following to create ~/.git-completion.bash
:
curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash > ~/.git-completion.bash
Then add the following to your ~/.bashrc
or ~/.bash_profile
after PATH
:
# Set the base PS1
PS1="\h:\W \u\$ "