diff --git a/zshrc b/zshrc index b7f0839..0eb12df 100644 --- a/zshrc +++ b/zshrc @@ -326,8 +326,7 @@ fshow() { } # Search z history with fzf -unalias z 2> /dev/null -z() { +fz() { [ $# -gt 0 ] && _z "$*" && return cd "$(_z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-* }" | sed 's/^[0-9,.]* *//')" }