tldr/pages.zh/common/z.md

29 lines
675 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# z
> 记录被使用次数最多的目录并允许在它们之间以字符串或正则表达式来进行匹配和跳转。
> 更多信息:<https://github.com/rupa/z>.
- 跳转到一个名字带有 "foo" 的文件夹:
`z {{foo}}`
- 跳转到一个名字带有 "foo" 并且后面带有 "bar" 的文件夹(例:`fooesbar`
`z {{foo}} {{bar}}`
- 跳转到名字带有 "foo" 并且拥有最高访问次数的文件夹:
`z -r {{foo}}`
- 跳转到最近使用的名字带有 "foo" 的文件夹:
`z -t {{foo}}`
- 列出在 `z` 的数据库中名字带有 "foo" 的文件夹:
`z -l {{foo}}`
- 将当前文件夹从 `z`的数据库中移除:
`z -x .`