Useful bash routines for developing with git on mac os. Includes Git completion and Git-aware PS1.
Based on Git completion with input from msonnabaum.
See screenshot of Git-aware PS1 in action.
-
Add this line at the bottom of your local .bash_profile, .profile or .bashrc:
. "$HOME/dotfiles/.profile"
-
If you don't already have a .gitconfig in your HOME directory, copy dotfiles/.gitconfig into your home directory and tweak the username and email address. If you already have your own .gitconfig, choose the lines you like from dotfiles/.gitconfig and add them to your .gitconfig