2025-03-14 21:59:59 -06:00
|
|
|
# z
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
> Tracks the most used (by frequency) directories and enables quickly navigating to them using string patterns or `regex`.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://github.com/rupa/z>.
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Go to a directory that contains `string` in the name:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`z string`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Go to a directory that contains `string1` and then `string2`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`z string1 string2`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Go to the highest-ranked directory matching `string`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`z -r string`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Go to the most recently accessed directory matching `string`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`z -t string`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- List all directories in `z`'s database matching `string`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`z -l string`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Remove the current directory from `z`'s database:
|
|
|
|
|
|
|
|
|
|
`z -x`
|
|
|
|
|
|
|
|
|
|
- Restrict matches to subdirectories of the current directory:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`z -c {{string}}`
|