1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-16 04:39:49 +00:00

update doc

This commit is contained in:
skywind3000
2019-02-05 04:40:07 +08:00
parent 76099e3d7d
commit 932fe1f463

View File

@@ -50,13 +50,23 @@ z -i foo # cd with interactive selection
eval "$(lua /path/to/z.lua --init bash)"
the default matching algorithm is similar to z.sh to keep compatible, you may like the enhanced matching algorithm for productivity:
eval "$(lua /path/to/z.lua --init bash enhanced once)"
and perhaps this:
export _ZL_ECHO=1
if you want `z.lua` print the new directory after cd.
- zsh:
put something like this in your `.zshrc`:
eval "$(lua /path/to/z.lua --init zsh)"
It can also be initialized from "skywind3000/z.lua" with your zsh plugin managers (antigen / oh-my-zsh).
Options like "enhanced" and "echo" can be used after `--init` too. It can also be initialized from "skywind3000/z.lua" with your zsh plugin managers (antigen / oh-my-zsh).
- posix shells: