Following on from my earlier post: -
I wanted to add the capability to display the name of the current GitHub repository branch in my Terminal.
Thankfully, GitHub already allows this, and I had their repository cloned to my Mac.
A quick update: -
git fetch origin
git rebase origin/master
and then I copied a pair of scripts: -
cp ~/Documents/GitHub/github.com/git/contrib/completion/git-completion.zsh ~/.zsh/_git
cp ~/Documents/GitHub/github.com/git/contrib/completion/git-prompt.sh ~