tldr/pages/common/z.md

28 lines
541 B
Markdown
Raw Normal View History

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.
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 .`