summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Wellenbrock <christian.wellenbrock@gmail.com>2014-02-25 15:40:52 +0100
committerChristian Wellenbrock <christian.wellenbrock@gmail.com>2014-02-25 15:40:52 +0100
commit2c0dc2f3b180744e2655b6823b3983bb0eba7ba3 (patch)
tree6ed657221fe0384702b6e3a15b845a535483a50f
parent1c94fef72066f01a0f8e74086c976b91dc3dd36a (diff)
Feed all zsh history into fzf (not only most recent)
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/install b/install
index c1513eb8..fe8dbe04 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