Stop burning time switching directories with zoxide

Environment & Shell Customization (Aliases/Functions/.Bashrc)

Stop burning time switching directories with zoxide

🧩 The Challenge

Typing out full paths like /var/www/html/project/api/v1/config/ every single time you need to fix a quick bug is a fast way to lose your mind. I’ve wasted so many keystrokes navigating the same nested structures while my fingers go numb.

💡 The Fix

Use zoxide to track where you go and let the shell guess your next destination based on frequency. It turns deep directory hops into a single jump.

eval "$(zoxide init bash)"
alias cd=z

⚙️ Why It Works

By hooking into your shell’s cd command, the utility builds a weight-based database of your directories. Instead of the path, you just give it a unique substring of the folder name and it drops you right in.

🚀 Pro-Tip: Run z -i if you ever have multiple folders with the same name and need to pick the right one from a menu.

Linux Tips & Tricks | © ngelinux.com | 8/13/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted