Set fish shell as default in macOS

By sborrazas on 2024-04-25

How to set fish shell as default shell in macOS.

  1. Install fish with brew install fish
  2. Test the installation by running fish
  3. Add the path fish to /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'
  4. Set the shell with chsh -s /opt/homebrew/bin/fish
  5. Log out of your current shell