From 13dda2c87721f1cb16de1030be85323371f774d6 Mon Sep 17 00:00:00 2001 From: wzy <32936898+Freed-Wu@users.noreply.github.com> Date: Tue, 3 Aug 2021 23:21:05 +0800 Subject: [PATCH] Fix #3 --- zsh-fzf-history-search.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh-fzf-history-search.zsh b/zsh-fzf-history-search.zsh index 3a83aeb..8167033 100644 --- a/zsh-fzf-history-search.zsh +++ b/zsh-fzf-history-search.zsh @@ -1,9 +1,9 @@ fzf_history_seach() { - BUFFER=$(history -t '%Y-%m-%d %H:%M:%S' 0 | grep -v 1969 | fzf +s +m -x --tac -e -q "$BUFFER" | awk '{print substr($0, index($0, $4))}') + BUFFER=$(history -t '%Y-%m-%d %H:%M:%S' 0 | fzf +s +m -x --tac -e -q "$BUFFER" | awk '{print substr($0, index($0, $4))}') zle end-of-line } autoload fzf_history_seach zle -N fzf_history_seach -bindkey '^r' fzf_history_seach \ No newline at end of file +bindkey '^r' fzf_history_seach