2017-08-10 18:50:04 +01:00
|
|
|
# z
|
|
|
|
|
2017-09-04 11:45:12 +01:00
|
|
|
> Tracks the most used directories and enables quickly navigating to them using string or regex patterns.
|
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 .`
|