[bash] Ignore asterisk (modified) in history

This commit is contained in:
Junegunn Choi 2015-05-20 19:45:05 +09:00
parent cca543d0cd
commit 40761b11b1

View File

@ -38,7 +38,7 @@ __fzf_history__() {
line=$(
HISTTIMEFORMAT= history |
$(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r |
\grep '^ *[0-9]') && sed 's/ *\([0-9]*\) .*/!\1/' <<< "$line"
\grep '^ *[0-9]') && sed 's/ *\([0-9]*\)\** .*/!\1/' <<< "$line"
}
__use_tmux=0