xxxxxxxxxx
1st method :-
- You can set fish as your default shell by running
'chsh -s $(which fish)'
2nd method :-
- by adding 'fish' to your '.bashrc' file
xxxxxxxxxx
> echo /usr/local/bin/fish | sudo tee -a /etc/shells
> chsh -s /usr/local/bin/fish
xxxxxxxxxx
For me, adding 'fish' to my '.bashrc' file prevented me from being able to login after logging out.
The solution that worked was running 'chsh -s $(which fish)' at a bash prompt.
You can also this within a fish shell: 'chsh -s (which fish)'.