Updated technique for seeing git and directory status in bash prompt

Just working with a git directory and noticed that whatever trick I was using to get the current git branch visible from my $PS1 variable in bash … stopped working. In discussing if a man page for git(1) was incorrect on #fedora-devel, tmz pointed out to me why it worked that way (short version: refer to the individual git-foo(1) man pages for actual examples, don’t rely upon the git(1) page for how the commands work on the command line.) He also suggested an alternative that is inline with what we do now in git 1.6. Here are the steps I followed.

Rip out whatever logic you have in ~/.bashrc for displaying the git branch at your command prompt.

Copy the script supplied by the git package to where you can make it an executable, such as ~/bin :

19:04 < tmz> quaid: Cool. Glad it helped. (Another place to point
people might be
https://fedoraproject.org/wiki/Git_Quickref#Display_current_branch_in_bash)
...
19:04 < tmz> quaid: If you have bash-completion installed, there's not
even a need to copy the completion script. :)