How can I disable Bash sessions in OS X El Capitan

If you startup a new Bash session manually (i.e. bash -xl), you can see what is run on login.

You’ll see the following line in the output:

....
+++ '[' '!' -e /Users/username/.bash_sessions_disable ']'

You can create a .bash_sessions_disable file in your home directory to disable this functionality.

Leave a Comment