bash how to remove "__bp_precmd_invoke_cmd" error?

Solution 1:

Using an editor such as nano or vim, Add the line

unset PROMPT_COMMAND

to your .bashrc file, and it will take effect on the next session.

To apply the change immediately for the life of the current shell session, type

unset PROMPT_COMMAND 

in your terminal window.