added prompt_cmd func to PROMPT_COMMAND