mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-17 21:29:48 +00:00
update doc
This commit is contained in:
@@ -253,10 +253,12 @@ alias zc='z -c' # 严格匹配当前路径的子路径
|
||||
alias zz='z -i' # 使用交互式选择模式
|
||||
```
|
||||
|
||||
同时你可以定义一个名为 `zf` 的命令,搭配 fzf 进行历史路径模糊匹配:
|
||||
同时你可以定义一个名为 `zf` 的命令,搭配 fzf 进行历史路径模糊匹配:
|
||||
|
||||
```bash
|
||||
alias zf='cd "$(z -l -s | fzf --reverse --height 35%)"'
|
||||
zf() {
|
||||
cd "$(z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-*}" | sed 's/^[0-9,.]* *//')"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -240,7 +240,9 @@ alias zz='z -i' # cd with interactive selection
|
||||
And you can define a `zf` command to select history path with fzf:
|
||||
|
||||
```bash
|
||||
alias zf='cd "$(z -l -s | fzf --reverse --height 35%)"'
|
||||
zf() {
|
||||
cd "$(z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-*}" | sed 's/^[0-9,.]* *//')"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user