From a6057d791b5676b17d05a6f3c33b6506f1434afa Mon Sep 17 00:00:00 2001 From: Lee Date: Fri, 9 Aug 2024 23:34:27 +0800 Subject: [PATCH] fix: --generate-bash-completion --- scripts/completion/bash_autocomplete | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/completion/bash_autocomplete b/scripts/completion/bash_autocomplete index 1e50939fc..b35f50a2d 100644 --- a/scripts/completion/bash_autocomplete +++ b/scripts/completion/bash_autocomplete @@ -19,9 +19,9 @@ _cli_bash_autocomplete() { fi words=("${words[@]:0:$cword}") if [[ "$cur" == "-"* ]]; then - requestComp="${words[*]} ${cur} --generate-shell-completion" + requestComp="${words[*]} ${cur} --generate-bash-completion" else - requestComp="${words[*]} --generate-shell-completion" + requestComp="${words[*]} --generate-bash-completion" fi opts=$(eval "${requestComp}" 2>/dev/null) COMPREPLY=($(compgen -W "${opts}" -- ${cur})) @@ -29,4 +29,4 @@ _cli_bash_autocomplete() { fi } -complete -o bashdefault -o default -o nospace -F _cli_bash_autocomplete curio sptool +complete -o bashdefault -o default -o nospace -F _cli_bash_autocomplete curio sptool \ No newline at end of file