From 2c0dc2f3b180744e2655b6823b3983bb0eba7ba3 Mon Sep 17 00:00:00 2001 From: Christian Wellenbrock Date: Tue, 25 Feb 2014 15:40:52 +0100 Subject: [PATCH] Feed all zsh history into fzf (not only most recent) --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index c1513eb..fe8dbe0 100755 --- a/install +++ b/install @@ -150,7 +150,7 @@ bindkey '\ec' fzf-cd-widget # CTRL-R - Paste the selected command from history into the command line fzf-history-widget() { - LBUFFER=$(history | fzf +s | sed "s/ *[0-9]* *//") + LBUFFER=$(history -$HISTSIZE | fzf +s | sed "s/ *[0-9]* *//") zle redisplay } zle -N fzf-history-widget