Skip to content

Instantly share code, notes, and snippets.

@HallexCosta
Last active February 26, 2025 13:12
Show Gist options
  • Save HallexCosta/528fb3c74d4de50c3ba183b1820b46d7 to your computer and use it in GitHub Desktop.
Save HallexCosta/528fb3c74d4de50c3ba183b1820b46d7 to your computer and use it in GitHub Desktop.
Configuring Fish Shell on Ubuntu

Steps to configure shell fish

  1. Install fish brew install fish

  2. Download starship curl -sS https://starship.rs/install.sh | sh

  3. Add fish to etc shell echo $(which fish) | sudo tee -a /etc/shells

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

  1. Add to the end of ~/.config/fish/config.fish to init starship when fish start
starship init fish | source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment