Skip to content
Snippets Groups Projects
Commit 40761b11 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[bash] Ignore asterisk (modified) in history

parent cca543d0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment