From f8f940b4feb1c460a0dc93e7c72a7b17a2927e2c Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sat, 11 Dec 2021 17:42:29 +0100 Subject: [PATCH] chore(zsh): rename fzf z function instead of overwriting the original command --- zshrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,.]* *//')" }