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.
Make fish the default
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.
Add fish to the know shells
run the command: sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'
Restart your terminal
Set fish as the default shell
run the command: chsh -s /opt/homebrew/bin/fish
Restart your terminal and check if it launched with fish or not
Add brew binaries in fish path
run the command: fish_add_path /opt/homebrew/bin
Optionnal Configurations
Auto Completions
To collect command completions for all commands run:
fish_update_completions
Edit config.sh
I edited the ~/.config/fish/config.fish to have my terminal in english
set -x LANG en_US.UTF-8
Configure your shell
You can configure your shell by launching the web interface, run:
Check the 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.Make
fish
the defaultwhich fish
. In the examples below it was located at:/opt/homebrew/bin/fish
. On older Macs the path might differ.sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'
chsh -s /opt/homebrew/bin/fish
fish
or notfish_add_path /opt/homebrew/bin
Optionnal Configurations
Auto Completions
To collect command completions for all commands run:
fish_update_completions
Edit config.sh
I edited the ~/.config/fish/config.fish to have my terminal in english
Configure your shell
You can configure your shell by launching the web interface, run:
fish_config