Skip to content

Instantly share code, notes, and snippets.

@dsernst
Created September 5, 2015 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsernst/78dd98fb002870bb35b8 to your computer and use it in GitHub Desktop.
Save dsernst/78dd98fb002870bb35b8 to your computer and use it in GitHub Desktop.
Example of modifying git to do something else before it runs
# Add this to the top of your .bash_profile
git () {
say "git";
/usr/local/bin/git "$@";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment