From f5d53b94fee06b3d1f81d718d7fb96adbf180a02 Mon Sep 17 00:00:00 2001 From: Christian Wellenbrock Date: Wed, 26 Feb 2014 10:56:44 +0100 Subject: Use `fc` instead of `history` to avoid omz alias --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3