Skip to content

Instantly share code, notes, and snippets.

@4e4c52
Forked from gagarine/fish_install.md
Last active May 5, 2024 00:37
Show Gist options
  • Save 4e4c52/1c2c5388acb5df689bca0ae26f458a1e to your computer and use it in GitHub Desktop.
Save 4e4c52/1c2c5388acb5df689bca0ae26f458a1e to your computer and use it in GitHub Desktop.
Install fish shell on macOS with Apple Silicon and 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 /opt/homebrew/bin/fish >> /etc/shells'

-> restart your terminal

Set fish as the default shell

chsh -s /opt/homebrew/bin/fish

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

Add brew binaries in fish path

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 and load autojump. You can install autojump with brew install autojump.

set -x LANG en_US.UTF-8

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