Feed all zsh history into fzf (not only most recent)

This commit is contained in:
Christian Wellenbrock 2014-02-25 15:40:52 +01:00
parent 1c94fef720
commit 2c0dc2f3b1

View File

@ -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