mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-15 04:09:49 +00:00
update doc
This commit is contained in:
@@ -350,7 +350,7 @@ eval "$(lua /path/to/z.lua --init bash enhanced once echo fzf)"
|
||||
|
||||
|
||||
```bash
|
||||
alias zh=`z -t -I .`
|
||||
alias zh='z -t -I .'
|
||||
```
|
||||
|
||||
首先定义个新的别名 `zh`(回到历史路径的意思),我们使用了 `-t` 参数来告诉 `z.lua` 按照时间戳作为权重进行排序,同时 `-I` 启用 fzf 进行搜索,最后的句号代表任意路径。
|
||||
|
||||
@@ -365,7 +365,7 @@ NOTE: To enable this, command `fzf` must be found in `$PATH` before initializati
|
||||
We always use `cd -` to go back to last accessed directory, but with the help of `fzf` we can achieve this productively:
|
||||
|
||||
```bash
|
||||
alias zh=`z -t -I .`
|
||||
alias zh='z -t -I .'
|
||||
```
|
||||
|
||||
The new alias `zh` (jump to history) uses a parameter `-t` to sort the result by time and `-I` to use `fzf` for selection. the result is:
|
||||
|
||||
Reference in New Issue
Block a user