2017-08-10 18:50:04 +01:00
|
|
|
# z
|
|
|
|
|
2024-04-23 09:54:59 +01:00
|
|
|
> Tracks the most used (by frequency) directories and enables quickly navigating to them using string patterns or regular expressions.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://github.com/rupa/z>.
|
2017-08-10 18:50:04 +01:00
|
|
|
|
2017-09-04 11:45:12 +01:00
|
|
|
- Go to a directory that contains "foo" in the name:
|
2017-08-10 18:50:04 +01:00
|
|
|
|
|
|
|
`z {{foo}}`
|
|
|
|
|
2017-09-04 11:45:12 +01:00
|
|
|
- Go to a directory that contains "foo" and then "bar":
|
2017-08-10 18:50:04 +01:00
|
|
|
|
|
|
|
`z {{foo}} {{bar}}`
|
|
|
|
|
2017-09-04 11:45:12 +01:00
|
|
|
- Go to the highest-ranked directory matching "foo":
|
2017-08-10 18:50:04 +01:00
|
|
|
|
|
|
|
`z -r {{foo}}`
|
|
|
|
|
2017-09-04 11:45:12 +01:00
|
|
|
- Go to the most recently accessed directory matching "foo":
|
2017-08-10 18:50:04 +01:00
|
|
|
|
|
|
|
`z -t {{foo}}`
|
|
|
|
|
2017-09-04 11:45:12 +01:00
|
|
|
- List all directories in `z`'s database matching "foo":
|
2017-08-10 18:50:04 +01:00
|
|
|
|
|
|
|
`z -l {{foo}}`
|
|
|
|
|
2017-09-04 11:45:12 +01:00
|
|
|
- Remove the current directory from `z`'s database:
|
2017-08-10 18:50:04 +01:00
|
|
|
|
|
|
|
`z -x .`
|
2021-02-18 23:13:08 +00:00
|
|
|
|
|
|
|
- Restrict matches to subdirectories of the current directory:
|
|
|
|
|
|
|
|
`z -c {{foo}}`
|