I've uninstalled ROS with:
sudo apt-get purge ros-*
Then when I open terminal I get this message. I have no idea how to solve it.
P.S. Because of the error I can't install ROS again.
The files that contain initialization commands when a shell is invoked are:
To quickly check if one of these files have something wrong inside, you can use