[bash] CTRL-R on bash 3: Use backticks to avoid delay

e0b29e437b
This commit is contained in:
Junegunn Choi 2023-09-27 09:16:16 +09:00
parent 76364ea767
commit a3ff49aaf1
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -113,7 +113,7 @@ if (( BASH_VERSINFO[0] < 4 )); then
bind -m vi-insert '"\C-t": "\C-z\C-t\C-z"'
# CTRL-R - Paste the selected command from history into the command line
bind -m emacs-standard '"\C-r": "\C-e \C-u\C-y\ey\C-u"$(__fzf_history__)"\e\C-e\er"'
bind -m emacs-standard '"\C-r": "\C-e \C-u\C-y\ey\C-u`__fzf_history__`\e\C-e\er"'
bind -m vi-command '"\C-r": "\C-z\C-r\C-z"'
bind -m vi-insert '"\C-r": "\C-z\C-r\C-z"'
else