mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-15 12:19:49 +00:00
update doc
This commit is contained in:
@@ -311,6 +311,15 @@ $ ls -l `zb git`
|
||||
|
||||
**Bonus**:`zb ..` 相当于 `cd ..`,`zb ...` 相当于 `cd ../..`,而 `zb ....` 相当于 `cd ../../..` 等等。 最后 `zb ..20` 等同于调用 `cd ..` 二十次。
|
||||
|
||||
环境变量 `$_ZL_ROOT_MARKERS` 是一个逗号分隔的列表,用来识别项目根目录,可以重定义成:
|
||||
|
||||
|
||||
```bash
|
||||
export _ZL_ROOT_MARKERS=".git,.svn,.hg,.root,package.json"
|
||||
```
|
||||
|
||||
这样在用 `zb` 时,可以回到包含 `.root`文件,或者 `package.json` 文件的父目录。
|
||||
|
||||
|
||||
## 补全功能
|
||||
|
||||
|
||||
@@ -329,6 +329,14 @@ $ ls -l `zb git`
|
||||
|
||||
**Bonus**: `zb ..` equals to `cd ..`, `zb ...` equals to `cd ../..` and `zb ....` equals to `cd ../../..`, and so on. Finally, `zb ..20` equals to `cd (..)x20`.
|
||||
|
||||
Environment variable `$_ZL_ROOT_MARKERS` is a comma separated list for project root locating, and can be redefined as:
|
||||
|
||||
```bash
|
||||
export _ZL_ROOT_MARKERS=".git,.svn,.hg,.root,package.json"
|
||||
```
|
||||
|
||||
If you want `zb` jump back to a parent directory contains a `.root` or `package.json`.
|
||||
|
||||
|
||||
## Completion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user