Please back up all data.
Select
Shell ▹ New Command
from the Terminal menu bar. Uncheck the box marked
Run command inside a shell
if checked.
Copy and paste the following line into the text box that opens, then press return:
mkdir disabled_shell_files
Close the Terminal window that opens. Repeat with this line:
mv .profile .bash_history .bash_profile .bashrc .inputrc disabled_shell_files
Your old shell initialization and history files will be saved in a directory named "disabled_shell_files" at the top level of your home directory. It's normal that some of these files will not exist, and therefore you will get some "no such file" errors.
Close the window, open a new one, and test.
You may already know that files with a name beginning in "." are not visible in the Finder by default. So if you open the folder you just created in the Finder, it will appear to be empty, even though it isn't. If you need to recover some of the data in the shell files, use a shell-based text editor such as nano(1). Make sure you're not recreating the problem. Otherwise, you can delete the folder.