Merge pull request #19 from wellle/zsh_history

Feed all zsh history into fzf (not only most recent)
pull/20/head
Junegunn Choi 10 years ago
commit c1be834ff9

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

Loading…
Cancel
Save