Zoxide

Zoxide

What is zoxide?

Zoxide is a command-line tool designed to make navigating your file system faster and more efficient. It acts as a replacement for the cd command, but with added functionality to jump to directories you've visited recently, based on usage frequency and recency.

Installation

You can install Zoxide through package managers like brew, cargo (Rust's package manager), or directly from the source. You can see the installation from here: https://github.com/ajeetdsouza/zoxide

But if you using linux and zsh shell you can follow below instruction:

Run this command in your terminal to install zoxide

Install zoxide

1curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh

If you get this note Note: /home/franz/.local/bin is not on your $PATH. zoxide will not work unless it is added to $PATH. When installing zoxide you need add your path in .zshrc or .bashrc

Export path

1export PATH="$HOME/.local/bin:$PATH

Then add this code to replace cd with zoxide

Replace cd with zoxide

1eval "$(zoxide init --cmd cd zsh)"

Why use Zoxide?

  1. It helps eliminate the need to remember long paths and repetitive cd commands.
  2. It improves productivity by quickly jumping to relevant directories based on context (frequent or recent access).

It's like an intelligent cd replacement, optimized for efficiency!