Skip to content

Commit

Permalink
[bash] CTRL-R on bash 3: Use backticks to avoid delay
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Sep 27, 2023
1 parent 76364ea commit a3ff49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/key-bindings.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3ff49a

Please sign in to comment.