-
Install fish brew install fish
-
Download starship curl -sS https://starship.rs/install.sh | sh
-
Add fish to etc shell echo $(which fish) | sudo tee -a /etc/shells
-
Making fish as default she chsh -s $(which fish)
If you receive an error like this
chsh: /home/linuxbrew/.linuxbrew/bin/fish is an invalid shell
Try add fish in shells list with command echo $(which fish) | sudo tee -a /etc/shells
and then execute the command chsh -s $(which fish)
again
- Add to the end of
~/.config/fish/config.fish
to init starship when fish start
starship init fish | source