summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-02-26 19:03:01 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-02-26 19:03:01 +0900
commit98bef4600c2a3021fc42fcfce4590013671b853d (patch)
treefa068c759e423952573bb648baf0ccf947106199
parent00c8a68430e232e32160e86f7e8cd8beffe1a76b (diff)
parentf5d53b94fee06b3d1f81d718d7fb96adbf180a02 (diff)
Merge pull request #20 from wellle/zsh-history-fc
Use `fc` instead of `history` to avoid `oh-my-zsh` alias
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/install b/install
index d7a874d7..b36fbf87 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' -$HISTSIZE | fzf +s | sed "s/ *[0-9]* *//")
+ LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]* *//")
zle redisplay
}
zle -N fzf-history-widget