Skip to content

Latest commit

 

History

History
136 lines (93 loc) · 3.3 KB

fish.md

File metadata and controls

136 lines (93 loc) · 3.3 KB

Fish

Description

Fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family.

Directory

References


Setup

Description

This details the installation of the Fish shell and making it the default shell for the user.

Installation

  1. Install the Fish (fish) package using yay.

Make Default

  1. Verify where the Fish shell is installed to by running:

    which fish

    This should output the full path to the Fish shell, such as /usr/bin/fish.

  2. Check if the path to the Fish shell is listed in /etc/shells by running:

    cat /etc/shells

    If the path is not listed, add it to the file by running:

    echo "$(which fish)" | sudo tee -a /etc/shells

    Enter your sudo password when prompted.

  3. Change your default shell to Fish by running:

    chsh -s "$(which fish)"
  4. Restart your terminal or desktop to apply the changes.


Configuration

Description

This details an example, ideal configuration or profile for the Fish shell.

References

Steps

  1. Create the Fish configuration directory (if not already exists) by running:

    mkdir -p ~/.config/fish
  2. Create a backup of the existing Fish configuration file by running:

    mv ~/.config/fish/config.fish ~/.config/fish/config.fish.bak
  3. Create a new Fish configuration file by running:

    nano ~/.config/fish/config.fish

    Copy the content of the sample config.fish file and paste it into the new fish configuration file.

  4. Make your own modifications and add in your own values to the configuration file as you see fit, then save the file.

    As it is, the configuration requires some dependencies that need to be installed first, including:

    • podman and/or docker
    • nano
    • vim
    • git
    • bat
    • lolcat
    • eza
    • yay
    • flatpak
    • distrobox
    • neofetch
    • python-virtualenv
    • rsync
    • shell-color-scripts
    • starship
    • visual-studio-code-bin (yay) or com.visualstudio.code (flatpak) (Optional)
    • kubectl (Optional)
    • arch-wiki-docs and arch-wiki-lite (Optional)
    • helm (Optional)
    • yt-dlp (Optional)
    • tmux (Optional)
    • miniconda3 (Optional)
  5. Restart your terminal or reload the new configuration to apply the changes:

    source ~/.config/fish/config.fish