tldr/pages/common/z.md

33 lines
699 B
Markdown
Raw Normal View History

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.
> 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 .`
- Restrict matches to subdirectories of the current directory:
`z -c {{foo}}`