mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-15 04:09:49 +00:00
update doc
This commit is contained in:
@@ -105,7 +105,7 @@ z -b foo # 跳转到父目录中名称以 foo 开头的那一级
|
||||
- 设置 `$_ZL_CMD` 来改变命令名称 (默认为 z)。
|
||||
- 设置 `$_ZL_DATA` 来改变数据文件 (default ~/.zlua)。
|
||||
- 设置 `$_ZL_NO_PROMPT_COMMAND` 为 1 来跳过钩子函数初始化(方便自己处理)。
|
||||
- 设置 `$_ZL_EXCLUDE_DIRS` 来确定一个你不想收集的路径数组。
|
||||
- 设置 `$_ZL_EXCLUDE` 来确定一个你不想收集的路径数组。
|
||||
- 设置 `$_ZL_ADD_ONCE` 为 '1' 时,仅在当前路径 `$PWD` 改变时才更新数据库。
|
||||
- 设置 `$_ZL_MAXAGE` 来确定一个数据老化的阀值 (默认为 5000)。
|
||||
- 设置 `$_ZL_CD` 用来指定你想用的 cd 命令,比如有人用 cd_func 。
|
||||
|
||||
@@ -124,7 +124,7 @@ z -b foo # cd to the parent directory starting with foo
|
||||
- set `$_ZL_CMD` in .bashrc/.zshrc to change the command (default z).
|
||||
- set `$_ZL_DATA` in .bashrc/.zshrc to change the datafile (default ~/.zlua).
|
||||
- set `$_ZL_NO_PROMPT_COMMAND` if you're handling PROMPT_COMMAND yourself.
|
||||
- set `$_ZL_EXCLUDE_DIRS` to an array of directories to exclude.
|
||||
- set `$_ZL_EXCLUDE` to an array of directories to exclude.
|
||||
- set `$_ZL_ADD_ONCE` to '1' to update database only if `$PWD` changed.
|
||||
- set `$_ZL_MAXAGE` to define a aging threshold (default is 5000).
|
||||
- set `$_ZL_CD` to specify your own cd command.
|
||||
|
||||
Reference in New Issue
Block a user