Actually PROMPT_COMMAND="history -a;history -c; history -r;$PROMPT_COMMAND" is better because it doesn't cause your history numbers to double!
Actually COMMAND= "history -a;history -c; history -r;$PROMPT_COMMAND"
PROMPT_
is better because it doesn't cause your history numbers to double!