1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 00:15:25 +02:00
tldr/pages/common/zoxide.md
2025-05-12 08:36:29 +03:00

29 lines
779 B
Markdown

# zoxide
> Keep track of the most frequently used directories.
> Uses a ranking algorithm to navigate to the best match.
> More information: <https://github.com/ajeetdsouza/zoxide>.
- Go to the highest-ranked directory that contains "foo" in the name:
`zoxide query {{foo}}`
- Go to the highest-ranked directory that contains "foo" and then "bar":
`zoxide query {{foo}} {{bar}}`
- Start an interactive directory search (requires `fzf`):
`zoxide query --interactive`
- Add a directory or increment its rank:
`zoxide add {{path/to/directory}}`
- Remove a directory from `zoxide`'s database:
`zoxide remove {{path/to/directory}}`
- Generate shell configuration for command aliases (`z`, `zi`):
`zoxide init {{bash|elvish|fish|nushell|posix|powershell|tcsh|xonsh|zsh}}`