Set Fish shell as default shell in macOS
By sborrazas on 2024-06-12
How to set fish shell as default shell in macOS.
- Install fish with
brew install fish
- Test the installation by running
fish
- Add the path fish to
/etc/shells
. First, get the path withwhich fish
. In my case the path is/opt/homebrew/bin/fish
. You can append the path with the commandsudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'
- Set the shell with
chsh -s /opt/homebrew/bin/fish
- Log out of your current shell