diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-05-20 19:45:05 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-05-20 19:45:05 +0900 |
commit | 40761b11b1d535c5de1b18f6c4e2c26932a990b3 (patch) | |
tree | afc303f212cff94fba9fe3560644c5a3243c97fd | |
parent | cca543d0cdbb99ae5649fdf9d94ea1c62c67ad2e (diff) |
[bash] Ignore asterisk (modified) in history
-rw-r--r-- | shell/key-bindings.bash | 2 |
1 files changed, 1 insertions, 1 deletions
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 |