fish shell

How to Install Fish Shell on Linux

How to Install Fish Shell on Linux
In Linux, shell is one of the most important parts. Every Linux user have used the shell more than once in the entire usage time. The terminal is the place where the shell is used. Generally, all the Linux systems come up with Bash shell pre-installed. It's very simple, but lacks the power of advanced and modern features. For better result, it's recommended to switch to Fish shell - a modern, innovative and productive shell.

Features of Fish shell

I know that the name is a bit funny - “Fish” shell! Don't let the name fool you as it comes up with a ton of useful features. The main features include -

Installing Fish shell

It's time to install the shell in our system. Let's fire up the terminal!

Run the following command(s) according to your Linux distro.

This method isn't recommended as it requires compiling & installing from the source. Uninstalling the shell may be a difficulty in this case. For this method, download the latest version of Fish shell (compressed).

Extract the file in a folder:

tar -xvzf fish-2.7.1.tar.gz

Change the working directory and build Fish shell:

cd fish-2.7.1/
./configure

sudo make

Install the software:

sudo make install

Switching to Fish shell

Now, it's time to change the default shell of terminal. Run the following command:

chsh -s /usr/bin/fish

Restart the terminal and behold the beautiful Fish shell!

Fish shell usage

There's no basic difference between Fish and Bash shell. Everything is just as same.

The first main difference that will catch your eyes is the coloring. Fish shell is more colorful than the classic Bash shell. However, the coloring also depends a lot on the terminal settings for color. The highlighting is really useful.

Another awesome feature is the availability of the command. For example, if I type “/bin/linuxhint”, it'll show the line in a red color, indicating that it's not a valid command.

But if I type “/bin/bash”, it'll look normal.

Another interesting feature is the suggestion bar. It remembers your usage pattern and can suggest you the right command at the right moment. Just press the → key when the suggestion appears.

These are all the basic features, but what about the others? If you want to go in-depth on Fish shell, you should give this online Fish shell playground a try. It comes up with a huge number of tutorials and other tricks.

Stay connected with linuxhint for more awesome tricks and tips!

How to Install and Play Doom on Linux
Introduction to Doom The Doom Series originated in the 90s after the release of the original Doom. It was an instant hit and from that time onwards th...
Vulkan for Linux Users
With each new generation of graphics cards, we see game developers push the limits of graphical fidelity and come one step closer to photorealism. But...
OpenTTD vs Simutrans
Creating your own transport simulation can be fun, relaxing and extremely enticing. That's why you need to make sure that you try out as many games as...