Only set $PROMPT_COMMAND if we are running in bash.
Include preexec_functions and precmd_functions for zsh.