My instinct says that if you'd run into any problems, it would be with this line:
PROMPT_COMMAND="run_on_prompt_command"