DEV Community

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

Posted on

6 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay