Revert to previous prompt_command as history -n was messing with "previous command" (UP)