Search code examples
bashpromptosx-elcapitan

Why is a [ being added to my prompt after upgrading to OS X 10.11?


Since upgrading from OS X 10.10 to 10.11, my Bash prompt has started to behave strangely. A configuration that I've been using for years without issues and started adding a [, on the line above the current line. That is, if I have

 ~/dir $ cd foo

and hit return, I get

[~/dir $ cd foo
 ~/dir/foo $ 

or, if I just have

 ~/dir $ 

and hit return, I get

[~/dir $ 
 ~/dir $ 

I get the same behavior regardless of the command I enter (or if, as above, I enter none).

Even if I completely empty my .bash_profile I still get this behavior.

What can I do to fix this (and why might this suddenly have started happening as the result of the upgrade to El Capitan)?


Solution

  • It is not about the bash setting or any other bash config file. You just need to uncheck "Automatically Mark Prompt Lines" option in Edit menu of Terminal app.