1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-07-02 10:58:50 +00:00

update documentation

This commit is contained in:
skywind3000
2018-12-05 18:00:37 +08:00
parent c955609e9e
commit bb07e5b33d
2 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -68,7 +68,12 @@ z -e foo # echo the best match, don't cd
- 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_ADD_ONCE` to '1' to update database only if `$PWD` changed.
- 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.
- set `$_ZL_ECHO` to 1 to display new directory name after cd.
## Benchmark
+5 -1
View File
@@ -4,7 +4,7 @@
-- z.lua - z.sh implementation in lua, by skywind (2018/03/19)
-- Licensed under MIT license.
--
-- Version 32, Last Modified: 2018/11/23 16:23
-- Version 32, Last Modified: 2018/12/05 17:55
--
-- * 10x times faster than fasd and autojump
-- * 3x times faster than rupa/z
@@ -53,6 +53,10 @@
-- 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_ADD_ONCE to 1 to update database only if $PWD changed.
-- set $_ZL_CD to specify your own cd command
-- set $_ZL_ECHO to 1 to display new directory name after cd.
-- set $_ZL_MAXAGE to define a aging threshold (default is 5000).
--
--=====================================================================