1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-17 21:29:48 +00:00

update doc

This commit is contained in:
skywind3000
2019-02-02 01:01:28 +08:00
parent a63d1210f9
commit b20ae58a82
2 changed files with 7 additions and 3 deletions

View File

@@ -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,.]* *//')"
}
```

View File

@@ -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,.]* *//')"
}
```