Use fc instead of history to avoid omz alias

This commit is contained in:
Christian Wellenbrock 2014-02-26 10:56:44 +01:00
parent 00c8a68430
commit f5d53b94fe

View File

@ -150,7 +150,7 @@ bindkey '\ec' fzf-cd-widget
# CTRL-R - Paste the selected command from history into the command line # CTRL-R - Paste the selected command from history into the command line
fzf-history-widget() { 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 redisplay
} }
zle -N fzf-history-widget zle -N fzf-history-widget