How to set fish shell as default shell in macOS.
brew install fish
fish
/etc/shells
. First, get the path with which fish
. In my case the path is /opt/homebrew/bin/fish
. You can append the path with the command sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'
chsh -s /opt/homebrew/bin/fish