mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-15 12:19:49 +00:00
update doc
This commit is contained in:
@@ -264,7 +264,7 @@ PS:你可以使用 `$_ZL_FZF` 环境变量来精确指明 fzf 的可执行路
|
||||
`"-b"` 选项可以快速回到某一级父目录,避免重复的输入 "cd ../../.."。
|
||||
|
||||
- **(没有参数)**:`cd` 到项目根目录,即跳转到父目录中包含 (.git/.svn/.hg) 的地方。
|
||||
- **(单个参数)**:`cd` 到离当前目录最近的以关键字开头的父目录。
|
||||
- **(单个参数)**:`cd` 到离当前目录最近的以关键字开头的父目录,如果找不到就尝试跳到包含关键字的父目录。
|
||||
- **(两个参数)**:将当前路径中的第一个关键词替换为第二个关键词。
|
||||
|
||||
为了使用简便,我们继续将 `z -b` 取个别名成 `zb`:
|
||||
|
||||
@@ -283,7 +283,7 @@ NOTE: For fish shell, this feature requires fish 2.7.0 or above. You can specify
|
||||
New option `"-b"` can quickly go back to a specific parent directory in bash instead of typing "cd ../../.." redundantly.
|
||||
|
||||
- **(No argument)**: `cd` into the project root, the project root is one of the parent directory with `.git`/`.hg`/`.svn` in it
|
||||
- **(One argument)**: `cd` into the closest parent having its name begin with the keyword you passed in.
|
||||
- **(One argument)**: `cd` into the closest parent starting with keyword, if not find, goto the parent containing keywords.
|
||||
- **(Two arguments)**: replace the first value with the second one (in the current path).
|
||||
|
||||
Let's start by aliasing `z -b` to `zb`:
|
||||
|
||||
Reference in New Issue
Block a user