[bash] Make sure to execute builtin history

Fix #1592
This commit is contained in:
Junegunn Choi 2019-06-03 18:46:01 +09:00
parent 0030d18448
commit 12ce76b56a
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -55,7 +55,7 @@ __fzf_history__() (
local line
shopt -u nocaseglob nocasematch
line=$(
HISTTIMEFORMAT= history |
HISTTIMEFORMAT= builtin history |
FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac --sync -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" $(__fzfcmd) |
command grep '^ *[0-9]') &&
if [[ $- =~ H ]]; then