Fix PROMPT_COMMAND in share_history