fixed by unsetting PROMPT_COMMAND instead