brew install fish
https://fishshell.com
- To fall back to another shell for something, just type
zsh
orbash
. - It will temporarily change the shell until you restart your terminal.
You can also type
fish
again to go back to fish.
- check the fish path with
which fish
. In the examples below it was located at:/opt/homebrew/bin/fish
- On older Macs these paths might differ.
- 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 and check if it launched with fish or not
- Add brew binaries in fish path:
set -U fish_user_paths /opt/homebrew/bin $fish_user_paths
Add the following to the end of ~/.config/fish/config.fish
set -g fish_greeting
Add the following to the end of ~/.config/fish/config.fish
starship init fish | source