summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Wellenbrock <christian.wellenbrock@gmail.com>2014-02-26 10:56:44 +0100
committerChristian Wellenbrock <christian.wellenbrock@gmail.com>2014-02-26 10:56:44 +0100
commitf5d53b94fee06b3d1f81d718d7fb96adbf180a02 (patch)
treefa068c759e423952573bb648baf0ccf947106199
parent00c8a68430e232e32160e86f7e8cd8beffe1a76b (diff)
Use `fc` instead of `history` to avoid omz 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