summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-02-25 23:41:54 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-02-25 23:41:54 +0900
commitc1be834ff9fcbabcd536fff36f260e9641810de3 (patch)
tree6ed657221fe0384702b6e3a15b845a535483a50f
parent1c94fef72066f01a0f8e74086c976b91dc3dd36a (diff)
parent2c0dc2f3b180744e2655b6823b3983bb0eba7ba3 (diff)
Merge pull request #19 from wellle/zsh_history
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