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.
If its a problem with your bash startup scripts you should be able to use the terminal menu item "New Command..." and run "bash --noprofile --norc".
But it may not be this.
What happens if you change your login shell? System prefs > users and groups > unlock, bottom left > right click your username > advanced options > login shell.
ctrl + C.
might work. works for me. glad it did!