Enjoy Fish Shell on Linux

0
346

In the case of Linux, the shell is like the heart of the entire system. The shell enables all the commands to run. A number of system apps rely on the shell scripts to work. In a word, without the shell, a Linux system is hardly Linux at all.

There are a number of available shells for the Linux platform, for example, ZSH and C Shell etc. Today, let’s party with the Fish! Fish shell is another popular alternative shell for Bash, the classic Linux shell.

The Fish shell comes up with a really cool look and coloring. Moreover, you get an auto-completion feature. This part remembers the commands you ran in the past and suggests them as you type your command.

Installing Fish shell

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

  • Ubuntu
sudo apt install fish

  • Debian
sudo apt-get install fish
  • OpenSUSE
sudo zypper install fish
  • Fedora
sudo dnf install fish
  • Arch Linux
sudo pacman -S fish
  • Generic Linux instruction

Download the source code of Fish shell.

Run the following commands –

tar -xzvf fish-2.7.1.tar.gz

cd fish-2.7.1/

./configure

make -j4

sudo make install

Changing the default shell

Now, you have to change your default shell. Run the following command –

cat /etc/shells

chsh

Enter the following value –

/usr/bin/fish

Restart your system.

Voila! Fish now is your default shell.

LEAVE A REPLY

Please enter your comment!
Please enter your name here