zoxide

Installing Zoxide on Different Linux Distributions

Zoxide is a smarter, faster way to navigate your filesystem. It keeps track of your most frequently used directories and allows you to jump to them instantly. Here’s how you can install and configure Zoxide on Debian-based systems, Fedora, and Arch Linux.

For Debian-Based Systems

  1. Step 1: Install Zoxide
  2. – Run the following command:

    sudo apt install zoxide

  3. Step 2: Configure for Bash

    1. – Open your .bashrc file:

      nano ~/.bashrc

    2. – Add this line at the end of the file:

      eval "$(zoxide init bash)"

  4. Step 3: Configure for Fish

    1. – Add the initialization command:

      echo 'zoxide init fish | source' >> ~/.config/fish/config.fish

    2. – Reload the shell:

      exec fish

For Fedora (Using dnf)

  1. Step 1: Install Zoxide

    – Run the following command:

    sudo dnf install zoxide

  2. Step 2: Configure for Bash

    1. – Open your .bashrc file:

      nano ~/.bashrc

    2. – Add this line at the end of the file:

      eval "$(zoxide init bash)"

  3. Step 3: Configure for Fish

    1. – Add the initialization command:

      echo 'zoxide init fish | source' >> ~/.config/fish/config.fish

    2. – Reload the shell:

      exec fish

For Arch Linux

  1. Step 1: Install Zoxide

    – Run the following command:

    sudo pacman -S zoxide

  2. Step 2: Configure for Bash

    1. – Open your .bashrc file:

      nano ~/.bashrc

    2. – Add this line at the end of the file:

      eval "$(zoxide init bash)"

  3. Step 3: Configure for Fish

    1. – Add the initialization command:

      echo 'zoxide init fish | source' >> ~/.config/fish/config.fish

    2. – Reload the shell:

      exec fish

Why Use Zoxide?

Zoxide simplifies filesystem navigation by allowing you to jump to frequently used directories with minimal effort. For example, instead of typing a long command like:

cd /very/long/directory/path

You can simply type:

z path

This lightweight utility is an essential tool for anyone looking to streamline their command-line workflow. Whether you’re on Debian, Fedora, or Arch Linux, Zoxide can be installed and configured quickly and easily for both Bash and Fish shells.