Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
z Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# z
> Tracks the most used (by frecency) directories and enables quickly navigating to them using string patterns or regular expressions.
> More information: <https://github.com/rupa/z>.
- Go to a directory that contains "foo" in the name:
`z {{foo}}`
- Go to a directory that contains "foo" and then "bar":
`z {{foo}} {{bar}}`
- Go to the highest-ranked directory matching "foo":
`z -r {{foo}}`
- Go to the most recently accessed directory matching "foo":
`z -t {{foo}}`
- List all directories in `z`'s database matching "foo":
`z -l {{foo}}`
- Remove the current directory from `z`'s database:
`z -x .`
- Restrict matches to subdirectories of the current directory:
`z -c {{foo}}`