Merge pull request #46 from takac/install-update

Fix fzf-history-widget to strip `*` from history lines when using tmux and fc
This commit is contained in:
Junegunn Choi 2014-05-26 16:59:56 +09:00
commit 3b218b77eb

View File

@ -216,7 +216,7 @@ bindkey '\ec' fzf-cd-widget
# CTRL-R - Paste the selected command from history into the command line
fzf-history-widget() {
LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]* *//")
LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]*\*\? *//")
zle redisplay
}
zle -N fzf-history-widget