mirror of
https://github.com/skywind3000/z.lua
synced 2026-09-25 20:11:41 +00:00
update doc for fzf-completion
This commit is contained in:
+1
-1
@@ -320,7 +320,7 @@ zsh/fish 的补全系统是比较完善的,使用 `z foo<tab>` 就能触发补
|
|||||||
|
|
||||||
再次按 `<tab>` 键,就可以用可视化的方式对列表进行选择。
|
再次按 `<tab>` 键,就可以用可视化的方式对列表进行选择。
|
||||||
|
|
||||||
在 bash 下面补全系统没有那么强大,所以 z.lua 引入了 fzf 补全,初始化使用:
|
在 bash 下面补全系统没有那么强大,所以 z.lua 引入了 fzf 补全,初始化时在 `--init` 后追加 `fzf` 关键字:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
eval "$(lua /path/to/z.lua --init bash enhanced once echo fzf)"
|
eval "$(lua /path/to/z.lua --init bash enhanced once echo fzf)"
|
||||||
|
|||||||
@@ -338,7 +338,7 @@ For zsh/fish, completion can be triggered by `z foo<tab>`. and a list of candida
|
|||||||
|
|
||||||
Press `<tab>` again, you can select your destination in a visualized way.
|
Press `<tab>` again, you can select your destination in a visualized way.
|
||||||
|
|
||||||
Bash is not as powerful as zsh/fish, so we introduced fzf-completion for bash, initialize your z.lua like this:
|
Bash is not as powerful as zsh/fish, so we introduced fzf-completion for bash, initialize your z.lua and append `fzf` keyword after `--init`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
eval "$(lua /path/to/z.lua --init bash enhanced once echo fzf)"
|
eval "$(lua /path/to/z.lua --init bash enhanced once echo fzf)"
|
||||||
|
|||||||
Reference in New Issue
Block a user