m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Ignore preceding z options (@ericbn)

Junegunn Choi
2017-10-11 02:10:12 +09:00
parent a250ee35b8
commit 4372a4ef4c

@@ -666,7 +666,7 @@ like normal z when used with arguments but displays an fzf prompt when used with
unalias z 2> /dev/null
z() {
[ $# -gt 0 ] && _z "$*" && return
cd "$(_z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "$*" | sed 's/^[0-9,.]* *//')"
cd "$(_z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-* }" | sed 's/^[0-9,.]* *//')"
}
```