2025-03-14 21:59:59 -06:00
|
|
|
# zoxide
|
|
|
|
|
|
|
|
|
|
> Keep track of the most frequently used directories.
|
|
|
|
|
> Uses a ranking algorithm to navigate to the best match.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://manned.org/zoxide>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Go to the highest-ranked directory that contains `string` in the name:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`zoxide query string`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Go to the highest-ranked directory that contains `string1` and then `string2`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`zoxide query string1 string2`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start an interactive directory search (requires `fzf`):
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`zoxide query {{[-i|--interactive]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Add a directory or increment its rank:
|
|
|
|
|
|
|
|
|
|
`zoxide add {{path/to/directory}}`
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Remove a directory from `zoxide`'s database:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`zoxide remove {{path/to/directory}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
- Generate shell configuration for command aliases (`z`, `zi`):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`zoxide init {{bash|elvish|fish|nushell|posix|powershell|tcsh|xonsh|zsh}}`
|