DEV Community

Cover image for Install fish shell on Ubuntu-22.04
IQIUM
IQIUM

Posted on

Install fish shell on Ubuntu-22.04

  • What is fish?

Fish shell is a terminal shell. It has many features to help developers improve coding and skills.

  • How to install?

First Step: add repository

sudo apt-add-repository ppa:fish-shell/release-3

Second: update and install

sudo apt update
sudo apt install fish

Third: replace the original terminal

sudo chsh -s /usr/local/bin/fish

If you want to back to the bash terminal, type this in terminal

sudo chsh -s 'which bash'

Top comments (1)

Collapse
 
foxeyerinx profile image
Rinx

on my "Ubuntu 22.04.2 LTS", got this error :
chsh: PAM authentication failed

To fix:

  • Run nano /usr/bin/fish
  • Change root:x:0:0:root:/root:/usr/local/bin/fish to root:x:0:0:root:/root:/usr/bin/fish
  • Run sudo chsh -s $(which zsh) $(whoami)