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.