m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 23:33:39 -05:00

[shell] Suppress alias/function expansion

Close #611
This commit is contained in:
Junegunn Choi
2016-07-07 01:40:14 +09:00
parent 942ba749c7
commit 6081eac58a
3 changed files with 18 additions and 18 deletions

View File

@@ -52,7 +52,7 @@ __fzf_history__() (
line=$(
HISTTIMEFORMAT= history |
eval "$(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS" |
\grep '^ *[0-9]') &&
command grep '^ *[0-9]') &&
if [[ $- =~ H ]]; then
sed 's/^ *\([0-9]*\)\** .*/!\1/' <<< "$line"
else