Fish-the best linux shell

#fish-shell #opensource #linux

Today I am gonna introduce you to the most user-friendly and advanced Linux shell “Fish”. Fish is a Linux shell and the most advanced shell I have ever found. Fish is fully scriptable, and its syntax is simple, clean, and consistent. Fish suggests commands as you type based on history and completions, just like a web browser. It is available for Linux, Mac O and window, and also available for development.

Features

  • Autosuggestions
  • Beautiful Themes
  • Highly customizable
  • Easy to use
  • Easy to install and
  • Lightweight
  • Feature rich

Installing Fish

Here I am gonna use the easiest way to install and use fish on your Linux system. The only thing which you need to do now is to install the fish package using your package manager.

  • Debian

    sudo apt install fish
    
  • Arch Linux

    pacman -S fish
    
  • Fedora

    sudo dnf install fish
    

When you are done, you may set it as your default shell using the following command:

chsh -s $(which fish)

after that reboot your system and open your terminal.

Now you are in the fish shell and it is your default shell with ugly looking theme. But you will have surprised when you type any command in it. You can feel its features now.

fish-shell-default-theme-linux24.png

Installing omf (oh my fish)

You may also want to change its default theme. There is an utility called “omf” (Oh My Fish) which lets you install and change your default shell theme.

To, change themes, first, you need to install this utility using any one of the following methods.

  • Preferred Method
curl -L https://get.oh-my.fish | fish

You can also install Oh My Fish with Git or with an offline source tarball downloaded from the releases page:

  • With git
git clone https://github.com/oh-my-fish/oh-my-fish

cd oh-my-fish

bin/install --offline
  • With a tarball
curl -L https://get.oh-my.fish > install

fish install --offline=omf.tar.gz

Setting up themes

If you have installed omf (Oh My Fish) utility on you system, it is time to install a new theme and set it as our default theme.

first we need to update the themes using the following command:

omf update

next, we will have to see available themes to install, you can do that using this command:

omf theme # for installed and available themes

omf_theme-linux24.png

or

omf list # for installed themes and plugins

omf_list-linux24.png

here you will see, installed and available themes in this list. In installed themes section only one theme “default” is install and set by default.

I like the “lambda” and “pie” themes most. You can try different themes and than decide to set it as your default theme. Here i am installing the “lambda” theme and you can install it using the following command:

omf install lambda

omf_install_lambda-linux24.png

Now, when it will have installed successfully, the installed theme will have set as the default theme automatically.

When you will list the themes, this time you will see two themes installed in which one will be lambda (in my case).

As you know, i like this theme and i will set it as my default shell theme(if lambda is not set as the default shell theme) using this command:

omf theme lambda

sometimes you may want to remove a theme from your system. To remove a theme(if pie theme is installed) you can try this command:

omf remove pie

omf_remove_pie-linux24.png

So, it was all about the Fish shell and if you found this post useful please like it and comment me your plane to use this great shell.

No Comments Yet