-1

On Ubuntu, I have fish installed, and have it set as my default shell using chsh -s /usr/bin/fish.

I would like to open a bash shell. Entering bash creates a new fish session. How can I open bash without ending my login session?

brandones
  • 1,847
  • 2
  • 18
  • 36
  • 3
    How do you come to the conclusion that `bash` starts a new `fish` session? – Cyrus Sep 04 '20 at 18:13
  • Erroneously. I assumed bash would set the `SHELL` env var. I was getting a bash shell (confirmed by testing `echo $(echo hey)`, which is bash-not-fish syntax), but `SHELL` was still set to `/usr/bin/fish`. – brandones Sep 06 '20 at 20:46

1 Answers1

2

If you're typing bash and ending up in a fish shell it almost certainly means you have put exec fish in your ~/.bashrc script. Which is a commonly used technique to make fish your "default" shell without the risk that chsh -s /usr/bin/fish entails. Just remove that line from your .bashrc now that you no longer need it.

Kurtis Rader
  • 6,734
  • 13
  • 20