[bash] Make sure to execute builtin history

Fix #1592
pull/1604/head
Junegunn Choi 5 years ago
parent 0030d18448
commit 12ce76b56a
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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

Loading…
Cancel
Save