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
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