Okay, you probably thought I must be joking, installing fish shell on macOS couldn’t be that hard. But believe me, at first, I had a hard time making everything work with fish the moment I installed it on macOS (Silicone). If you’re here, I assume you got fish installed on your machine, now, let’s figure out the rest.
Check the path
Here lies the difference between Intel Macs and Silicone Macs, the location of fish is different between the two. You have to check the path using which fish
:
In the examples below, I will use the Silicone Macs path, but you can replace them accordingly.
fish
the default
Make - Add fish to the know shells by running the command:
- Restart your terminal
- Set fish as the default shell using the command:
- Restart your terminal and check if it launched with fish or not
- Add brew binaries in fish path: