Recently I got tired of the smaller kinks that the Fish Shell presented me with (undiscoverable commands etc.) so I decided I wanted to change the shell back to normal and uninstall fish.
However in the process of doing so I have done something terribly wrong.
I have set it to the normal: /bin/bash
However Im represented with a series of prompts (in regards to Vagrant) and have to exit this with the CTRL+C command (cancel)
I want to get my old terminal back (with my current folder prepended etc.) but I have no clue in how to accomplish this.
I've attached two screenshots. One is the current terminal (the one with the bash -bash-3.2$
in front.
The second is the terminal i want (the default with username appended) [source of image is found on the internet, for reference]
This is the terminal I have
This is the terminal I want
I've found two things:
- My bash profile is deleted hence i cannot see my computer name etc. I've tried to recreate it but:
- I need a sample .bash_profile
- …and i need it to be persistent such that when i exit my terminal I do not fire the VVV script (that it apparently fires off when it first enters the terminal)
Best Answer
First,
rm ~/.bashrc ~/.bash_profile ~/.profile
These are not needed and don't exist by default.Second, check to see
/etc/profile
is there, should be:Third, check
/etc/bashrc
(this is where your prompt is defined). Should be:Finally, if it's still not working make sure you have /bin/bash set as your default shell using the advanced options in the User & Groups System Preference. If you don't login with bash, it will bypass the configs in
/etc/