Skip to content

Instantly share code, notes, and snippets.

@sh1mu7
Last active February 24, 2024 19:49
Show Gist options
  • Select an option

  • Save sh1mu7/8969e248280eefc4a1a6600de987d564 to your computer and use it in GitHub Desktop.

Select an option

Save sh1mu7/8969e248280eefc4a1a6600de987d564 to your computer and use it in GitHub Desktop.
Fish Terminal

Installing Fish Shell on Ubuntu

Author: sh1mu7

This guide provides step-by-step instructions for installing the Fish shell on Ubuntu.

Installation

Step 1: Downloading Fish

You can install Fish using the following command:

sudo apt-get install fish

Step 2: Entering Fish

To enter the Fish shell, simply run the following command in your terminal:

fish

Step 3: Setting Fish as Your Default Shell

To make Fish your default shell instead of Bash, follow these simple steps:

  1. Open your terminal.

  2. Run the following command:

    sudo chsh -s /usr/bin/fish

Now, every time you log in, Fish will automatically be your default shell. Enjoy the enhanced features and capabilities of Fish from now on.

Step 4: Removing the Default Welcome Message

  1. Open your terminal.

  2. To edit the Fish configuration file, run this command:

    sudo nano ~/.config/fish/config.fish

This will open Nano text editor with a configuration file specific to Fish.

  1. Remove any existing content in the file.

  2. Add this line to set a blank greeting:

    set -g -x fish_greeting ''

By making this configuration change, you will remove any default welcome message displayed when starting Fish.

  1. Save and exit Nano by pressing Ctrl + O, then Enter and Ctrl + X respectively.

The default welcome message in Fish has been successfully removed.

Step 5: Switching back to Bash temporarily or permanently

1.If you want to switch back to using the Bash shell temporarily, simply enter the following command in your terminal:

bash

By following these steps, you can switch between Fish and Bash as needed.

Thank you for using this guide! If you have any questions or need further assistance, please visit the GitHub Profile for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment