From f2621414ee5f2f601424c22f00e207903e3b6104 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:03:18 +0200 Subject: Merging upstream version 1:2.12.0. Signed-off-by: Daniel Baumann --- completions/help | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 completions/help (limited to 'completions/help') diff --git a/completions/help b/completions/help new file mode 100644 index 0000000..679ea9f --- /dev/null +++ b/completions/help @@ -0,0 +1,16 @@ +# bash completion for help -*- shell-script -*- + +_comp_cmd_help() +{ + local cur prev words cword comp_args + _comp_initialize -- "$@" || return + + if [[ $cur == -* ]]; then + _comp_compgen_usage -c help -s "$1" + return + fi + + _comp_compgen -- -A helptopic + ((${#COMPREPLY[*]} != 1)) || printf -v "COMPREPLY[0]" %q "$COMPREPLY" +} && + complete -F _comp_cmd_help help -- cgit v1.2.3