From 40761b11b1d535c5de1b18f6c4e2c26932a990b3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 20 May 2015 19:45:05 +0900 Subject: [PATCH] [bash] Ignore asterisk (modified) in history --- shell/key-bindings.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index aad7027f..d543428e 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -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