Back to Blog
Arnošt Havelka

Zoxide Add

Manually add directories to the database.

Start Interactive Lesson
Zoxide Add

Zoxide usually learns automatically. But sometimes you want to teach it a path before you visit it, or fix a path that isn't ranking high enough.

Try the command

Add the current directory!

Build the command
zoxide add
pathThe full path to the directory you want to add.
Terminal
C:\Users\User>zoxide add C:\Project

How it works

Running zoxide add . adds the current directory to the database. If it's already there, it bumps its score (frecency), making it more likely to be chosen when you jump.

Real-World Example

Teaching Zoxide a new project

You just cloned a repo. You want to be able to jump to it immediately from anywhere.

Command Prompt
C:\Users\User>zoxide add C:\Users\Dev\NewProject

(Now you can just type z NewProject from anywhere!)


Knowledge Check

1 / 2

What does 'zoxide add' do?

References

These documentation links provide authoritative details for the commands used in this article.

Up Next

Variables and Time

Use environment variables and time commands to build predictable automation and timestamped logs.