Some libraries do things like PROMPT_COMMAND="$PROMPT_COMMAND ; _new_addition", that's a space-semicolon-space, and others do PROMPT_COMMAND="_other_thing; $PROMPT_COMMAND". This leads to two consecutive semicolons if both libraries load after bp first sets $PROMPT_COMMAND. It would be counter-productive to try to account for all possibilities, so just swap the install string for a no-op. Then, try to clean up the no-op if it's all that's left.
Some libraries do things like
PROMPT_COMMAND="$PROMPT_COMMAND ; _new_addition"
, that's a space-semicolon-space, and others doPROMPT_COMMAND="_other_thing; $PROMPT_COMMAND"
. This leads to two consecutive semicolons if both libraries load after bp first sets$PROMPT_COMMAND
. It would be counter-productive to try to account for all possibilities, so just swap the install string for a no-op. Then, try to clean up the no-op if it's all that's left.