Raspberry Pi

How to Install Fish Shell on Raspberry Pi

Getting bored of experiencing the default Raspberry Pi command-line display? Try Fish Shell. It’s an open-source command-line shell with a user-friendly environment that can change the look of your default Raspberry Pi terminal command line. It offers autosuggestion, glorious colors, web-based configuration and much more.

This article is a detailed guide to install Fish Shell on Raspberry Pi.

How to Install Fish Shell on Raspberry Pi

To install Fish Shell on Raspberry Pi, follow the below-given steps:

Step 1: Download Fish Shell Source File

First, go to the website here and check the latest Fish shell release file and download it on Raspberry Pi using the “wget” command.

$ wget https://github.com/fish-shell/fish-shell/releases/download/3.5.1/fish-3.5.1.tar.xz

Step 2: Extract Fish Shell Contents

To extract the Fish Shell contents from the source file, use the following command:

$ tar -xf fish-3.5.1.tar.xz

Step 3: Navigate to Fish Shell Directory

Navigate to Fish Shell directory using the following command:

$ cd fish-3.5.1

Step 4: Prepare Installation Files

To begin installing Fish Shell on Raspberry Pi, use the following command as this will prepare the installation files on the system:

$ make

Step 5: Build Shell Script Files

Now, build the files using the following command to successfully install Shell Script on Raspberry Pi.

$ sudo make install

Step 6: Add Fish Shell to Shells

You must add Fish Shell to Shells using the following command:

$ echo /usr/local/bin/fish | sudo tee -a /etc/shells

Step 7: Set Fish Shell as User’s Shell

To add Fish Shell to default user’s shell, you have to run the following command:

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

Enter the Raspberry Pi password and reboot the system to apply the changes.

After the reboot, you can run the Raspberry Pi terminal to see a friendly interactive Fish Shell command-line display.

To switch to default settings, you can use the following command:

$ chsh -s /bin/bash

Conclusion

Fish Shell is a command-line shell that can replace your default Raspberry Pi command-line display. Following the above guide, you can install Fish Shell on Raspberry Pi from the GitHub source file. After the installation, you must add the Shell to the shells directory and make it the default Shell using the “chsh” command. The changes can be seen once you reboot your Raspberry Pi system.

About the author

Awais Khan

I'm an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.