4

I've seen a few questions as to how to enter into bash while fish is the default shell. I actually want to do the opposite. I currently have fish as my default shell, but would like to return to bash as my default. However, I do not want to uninstall fish and would like the option to enter into a shell session with fish at my discretion. Any advice on how to do this?

1
15

You could change your default shell to bash by typing in the following line:

chsh -s /bin/bash

You will probably need to log out and log back in for the settings to take effect.

Then if you wanted to run fish, it would just be the command fish at a bash prompt.

More information can be found at https://wiki.ubuntu.com/ChangingShells

1
  • 3
    Or exec fish, if you want your terminal/session to close when you exit fish (instead of dropping back to your original shell). – Rmano May 24 '16 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.