From a3ff49aaf18eceefe4bf8b1df5bf275b3d982493 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 27 Sep 2023 09:16:16 +0900 Subject: [PATCH] [bash] CTRL-R on bash 3: Use backticks to avoid delay https://github.com/junegunn/fzf/commit/e0b29e437be458066fca4dab39b282dfc11466f6 --- shell/key-bindings.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index a0d0bda..8654a6f 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -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