Mac terminal can't be used after set up of ~/.bash_profile I was installing Apache Ant earlier and once I did, I also ran:

touch ~/.bash_profile
nano .bash_profile


Within that text file I wrote:

. .bash_profile


saved, exited, then ran:

source ~/.bash_profile


Now my Terminal looks like this:



I can't access my command line at all, so I went into preferences and set

/bin/bash -x


to run as a default upon Terminal's open, and now it looks like this:



and still reads

[Process Completed]


afterward. Any help?
You've got a recursive inclusion in your .bash_profile.

You can always edit the file in TextEdit.app (or another graphical text editor of your liking) if you get in to deep trouble like this.

Open up TextEdit using Spotlight or via Finder and then type ⌘ CMD+o to get the Open File... dialog. Press ⌘ CMD+⇧ SHIFT+. to reveal hidden files in the dialog box and then find your ~/.bash_profile file. Remove the:

. .bash_profile


from the file and save it and you'll have a working bash shell again.