From 43df0fe130f00444b836a24f0670a6d5df50ba0e Mon Sep 17 00:00:00 2001 From: John D Pell Date: Thu, 3 Feb 2022 22:46:58 -0800 Subject: [PATCH] completion/aliases: rename init function Use the callback naming convention for the init function, for later use. --- completion/available/aliases.completion.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/completion/available/aliases.completion.bash b/completion/available/aliases.completion.bash index a1d1cb89..bdcaf917 100644 --- a/completion/available/aliases.completion.bash +++ b/completion/available/aliases.completion.bash @@ -1,6 +1,6 @@ # shellcheck shell=bash about-plugin 'Automatic completion of aliases' -# Load after the other completions to understand what needs to be completed +# Load after all aliases and completions to understand what needs to be completed # BASH_IT_LOAD_PRIORITY: 800 # References: @@ -8,7 +8,7 @@ about-plugin 'Automatic completion of aliases' # http://stackoverflow.com/a/1793178/1228454 # Automatically add completion for all aliases to commands having completion functions -function alias_completion() { +function _bash-it-component-completion-callback-on-init-aliases() { local namespace="alias_completion" local tmp_file completion_loader alias_name line completions local alias_arg_words new_completion compl_func compl_wrapper alias_defn @@ -95,4 +95,4 @@ function alias_completion() { source "$tmp_file" && command rm -f "$tmp_file" } -alias_completion +_bash-it-component-completion-callback-on-init-aliases