Skip to content

Instantly share code, notes, and snippets.

@Pepeye
Forked from gagarine/fish_install.md
Created August 15, 2021 12:16
Show Gist options
  • Save Pepeye/586ad13e13cc0e5c1da48414fd5cbeb9 to your computer and use it in GitHub Desktop.
Save Pepeye/586ad13e13cc0e5c1da48414fd5cbeb9 to your computer and use it in GitHub Desktop.
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can nstall it 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

Add fish to the know shells

sudo sh -c 'echo /usr/local/bin/fish >> /etc/shells'

-> restart your terminal

Set fish as the default shell

chsh -s /usr/local/bin/fish

-> restart your terminal, fish should load automatically now instead of bash.

Add brew binaries in fish path

set -U fish_user_paths /usr/local/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 and load autojump. You can install autojump with brew install autojump.

set -x LANG en_US.UTF-8

[ -f /usr/local/share/autojump/autojump.fish ];
source /usr/local/share/autojump/autojump.fish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment