From a4e4f30ff14209ea69ddee1e6a028627573d839a Mon Sep 17 00:00:00 2001 From: John D Pell Date: Sun, 26 Sep 2021 11:54:32 -0700 Subject: [PATCH] plugins/percol: `bind` Move `bind` below function definition --- plugins/available/percol.plugin.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/available/percol.plugin.bash b/plugins/available/percol.plugin.bash index 97986ccf..027dfdc4 100644 --- a/plugins/available/percol.plugin.bash +++ b/plugins/available/percol.plugin.bash @@ -19,8 +19,6 @@ if [[ ${BASH_VERSINFO[0]} -lt 4 ]]; then _log_warning "You have to upgrade Bash to Bash v4.x to use the 'percol' plugin." _log_warning "Your current Bash version is $BASH_VERSION." return -else - bind -x '"\C-r": _replace_by_history' fi function _replace_by_history() { @@ -31,3 +29,4 @@ function _replace_by_history() { READLINE_LINE="${l}" READLINE_POINT=${#l} } +bind -x '"\C-r": _replace_by_history'