diff options
author | Christian Wellenbrock <christian.wellenbrock@gmail.com> | 2014-02-26 10:56:44 +0100 |
---|---|---|
committer | Christian Wellenbrock <christian.wellenbrock@gmail.com> | 2014-02-26 10:56:44 +0100 |
commit | f5d53b94fee06b3d1f81d718d7fb96adbf180a02 (patch) | |
tree | fa068c759e423952573bb648baf0ccf947106199 | |
parent | 00c8a68430e232e32160e86f7e8cd8beffe1a76b (diff) |
Use `fc` instead of `history` to avoid omz alias
-rwxr-xr-x | install | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |