Skip to content

Commit d653165

Browse files
author
skywind3000
committed
update doc
1 parent 9c7d02e commit d653165

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@ PS:你可以使用 `$_ZL_FZF` 环境变量来精确指明 fzf 的可执行路
289289

290290
向后跳转同样也支持环境变量 `$_ZL_ECHO`(用来显示跳转结果),这样可以搭配其他工具,在目标目录内执行命令,而并不需要改变当前工作目录(比如:``ls `zb git` ``)。
291291

292-
**Bonus**`zb ..` 相当于 `cd ..``zb ...` 相当于 `cd ../..`,而 `zb ....` 相当于 `cd ../../..` 等等。 最后 `zb ..20` 等同于调用 `cd ..` 二十次。
293-
294292
环境变量 `$_ZL_ROOT_MARKERS` 是一个逗号分隔的列表,用来识别项目根目录,可以重定义成:
295293

296294

@@ -300,6 +298,8 @@ export _ZL_ROOT_MARKERS=".git,.svn,.hg,.root,package.json"
300298

301299
这样在用 `zb` 时,可以回到包含 `.root`文件,或者 `package.json` 文件的父目录。
302300

301+
**Bonus**`zb ..` 相当于 `cd ..``zb ...` 相当于 `cd ../..`,而 `zb ....` 相当于 `cd ../../..` 等等。 最后 `zb ..20` 等同于调用 `cd ..` 二十次。
302+
303303

304304
## 补全功能
305305

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,6 @@ Let's start by aliasing `z -b` to `zb`:
308308

309309
Backward jumping can also be used with `$_ZL_ECHO` option (echo $PWD after cd), which makes it possible to combine them with other tools without actually changing the working directory (eg. ``ls `zb git` ``).
310310

311-
312-
**Bonus**: `zb ..` equals to `cd ..`, `zb ...` equals to `cd ../..` and `zb ....` equals to `cd ../../..`, and so on. Finally, `zb ..20` equals to `cd (..)x20`.
313-
314311
Environment variable `$_ZL_ROOT_MARKERS` is a comma separated list for project root locating, and can be redefined as:
315312

316313
```bash
@@ -319,6 +316,8 @@ export _ZL_ROOT_MARKERS=".git,.svn,.hg,.root,package.json"
319316

320317
If you want `zb` jump back to a parent directory contains a `.root` or `package.json` in it.
321318

319+
**Bonus**: `zb ..` equals to `cd ..`, `zb ...` equals to `cd ../..` and `zb ....` equals to `cd ../../..`, and so on. Finally, `zb ..20` equals to `cd (..)x20`.
320+
322321

323322
## Completion
324323

0 commit comments

Comments
 (0)