jimeh/git-aware-prompt — pull request #10 by cryptographrix (2013-07-08 19:14:53+00:00)
Title: Trap only specific commands so as to not slow down the command prompt.

This traps on ^cd, ^git, and ^PROMPT_COMMAND. Feel free to add more, but this is a start.