PROMPT_COMMAND not only for Mac OS