11/24/2024 Setup fish as default shell on macOS

Install fish

On whatever terminal you are, install fish :

brew install fish

Note that, due to a brew --prefix variation, the installation path will vary :

which fish

Update /etc/shells

sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'

Restart your terminal.

Make fish your default shell with chsh

chsh -s /opt/homebrew/bin/fish

Restart your terminal.

Check $SHELL

( After restarting your terminal )

echo $SHELL