Merge pull request #20 from wellle/zsh-history-fc

Use `fc` instead of `history` to avoid `oh-my-zsh` alias
pull/25/head
Junegunn Choi 10 years ago
commit 98bef4600c

@ -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

Loading…
Cancel
Save