Added history append to PROMPT_COMMAND