From 4372a4ef4ce196f8561b7094476c3ddee36840c9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 11 Oct 2017 02:10:12 +0900 Subject: [PATCH] Ignore preceding z options (@ericbn) --- Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index 22f449b..8b4acd0 100644 --- a/Examples.md +++ b/Examples.md @@ -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,.]* *//')" } ```