I was trying to make some changes with PATH (mostly add a new PATH) to my .bash_profile and the last line entered was source .bash_profile
.
After I saved and restarted the Terminal app, instead of the shell prompt I see PATH values continuously popping up on my Terminal window tab. Only CTRL+C will kill it but now I see 'Application Closed' message and that's the end of it. What do I do to restore the shell back to my previous status? I tried running the repair permissions under Disk Utility but that didn't seem to fix my issue.
Thanks in advance.
Best Answer
You should remove the line:
from your .bash_profile. This line is causing the infinite loop by continuously loading the file. As you have discovered, repairing permissions will not solve this issue.
Since you can't access terminal, you can edit your .bash _profile in TextEdit. Here's how to do so:
Cmd-Shift-.
to view all hidden files.source .bash_profile
line.