Terminal – Understanding the Left Bracket Before Bash Prompt

bashterminal

I've notice that after I execute commands, a left bracket character will appear before the previous line. It seems to be partially dependent on what's in $PS1. I've tried unsetting $PROMPT_COMMAND and $PS1 but that did not make a difference. Here is an example of this happening in Terminal.app:

Terminal.app

Best Answer

I figured it out. I went to View->Hide Marks and the [ characters disappeared.