Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
More info: https://fishshell.com/docs/current/tutorial.html#tut_path
Check the fish path with which fish
. In the examples below it was located at: /opt/homebrew/bin/fish
On older Macs default path is /usr/local/bin/fish
, replace accordingly in the instruction below.
MacOS allow you to change your default Shell using comande line or GUI methodes https://support.apple.com/en-us/102360.
Using the terminal:
- check the fish path with
which fish
. In the examples below it was located at:/opt/homebrew/bin/fish
. On older Macs the path might differ. chsh -s /opt/homebrew/bin/fish
run the command: fish_add_path /opt/homebrew/bin
To collect command completions for all commands run:
fish_update_completions
I edited the ~/.config/fish/config.fish to have my terminal in english
set -x LANG en_US.UTF-8
You can configure your shell by launching the web interface, run:
fish_config
fish isn't in the list of shells by default, because it only shows shells listed in
/etc/shells
.You can press "Choose..." and select the fish executable (which is annoying because you can't navigate to
/usr/local/bin/
or/opt/homebrew/bin/
directly and need to drag it in from another Finder window). But Finder helpfully resolves the symlink for you, which will break things whenever fish upgrades...So I guess the best way is to edit
/etc/shells
😦