From 2553155e652e0d1c602bc95e6575ad56637656f2 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 22 Mar 2016 11:46:00 +0900 Subject: [PATCH] z: --query --- Examples.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Examples.md b/Examples.md index e9f90a5..73efa5d 100644 --- a/Examples.md +++ b/Examples.md @@ -492,11 +492,8 @@ like normal z when used with arguments but displays an fzf prompt when used with ```sh unalias z 2> /dev/null z() { - if [[ -z "$*" ]]; then - cd "$(_z -l 2>&1 | fzf +s --tac | sed 's/^[0-9,.]* *//')" - else - _z "$@" - fi + [ $# -gt 0 ] && _z "$*" && return + cd "$(_z -l 2>&1 | fzf-tmux +s --tac --query "$*" | sed 's/^[0-9,.]* *//')" } ```