Recently I have tried to edit my .bash_profile and add a path which enables matlab to be opened when called directly from the terminal. In the .bash_profile I have also added a line:
/usr/local/Applications/MATLAB_R2015a_node.app/bin/matlab
I saved that and tried opening the terminal. Since then, my terminal automatically only opens matlab and does not allow me to execute any commands or open a bash_profile to delete/change that.
This is how my terminal looks like when opened:
I have tried many things suggested from this forum but I am unable to do anything. Does anyone know a way to solve this? Also, how can I find a hidden bash_profile when terminal does not execute any commands? I have the OS X El Capitan (version 10.11.6).
One more thing, while matlab is open I can type in the terminal but it does not execute the commands, once I close the matlab I cannot anymore type in the terminal. Once matlab closed, in the terminal appears:
Saving session... ...process completed
The location of the matlab file is as displayed in this photo: