Skip to content

Instantly share code, notes, and snippets.

@r0nny8000
Forked from gagarine/fish_install.md
Last active January 25, 2022 20:02
Show Gist options
  • Save r0nny8000/2bb7623f06d7d2e3a4cdbb37b1d963c1 to your computer and use it in GitHub Desktop.
Save r0nny8000/2bb7623f06d7d2e3a4cdbb37b1d963c1 to your computer and use it in GitHub Desktop.
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS with Homebrew (Intel and M1)

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 defaul shell.

Note that you need the https://brew.sh/ package manager.

You can also download the fish app from their website. I do recomand using brew because update are easier.

Install Fish

brew install fish

More info: https://fishshell.com/docs/current/tutorial.html#tut_path

Check the path

Check the fish path with which fish . In the examples below it was located at: /opt/homebrew/bin/fish

Make fish the default

  1. check the fish path with which fish. In the examples below it was located at: /opt/homebrew/bin/fish.
  2. Add fish to the know shells run the command: sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'
  3. Restart your terminal
  4. Set fish as the default shell run the command: chsh -s /opt/homebrew/bin/fish
  5. Restart your terminal and check if it launched with fish or not
  6. Add brew binaries in fish path run the command: set -U fish_user_paths /opt/homebrew/bin $fish_user_paths

Optionnaly configure the shell (launch web interface)

fish_config

Config.sh

I also edited the ~/.config/fish/config.fish to have my terminal in english

set -x LANG en_US.UTF-8

Related documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment