Set PROMPT_COMMAND. Minor tweak to bashrc.