From bb07e5b33dc7dbfcee39e53c7b6b726b63253200 Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Wed, 5 Dec 2018 18:00:37 +0800 Subject: [PATCH] update documentation --- README.md | 7 ++++++- z.lua | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd022e2..2509c51 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/z.lua b/z.lua index 356d7a0..7f29ce8 100644 --- a/z.lua +++ b/z.lua @@ -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). -- --=====================================================================