My bash prompt is missing as shown on the image. I'm not even sure how to open the .bash_profile since dot files are hidden in the finder.
I restarted the machine to no avail.
Setting aside the problem with your shell - there are lots of ways to get to a clean prompt:
- make a new user account and use that command line to become root:
sudo -sand then go in and nuke/fix/move your files
You also could try booting to single user mode, mounting the filesystem read+write and cleaning things. I'd go the new user route since you can log out of your user without needing a restart.