fix a tiny bug with bash

This commit is contained in:
Gyanendra Mishra 2023-01-30 18:35:48 +00:00
parent a3adbf86de
commit bc561bcbf3

View file

@ -360,8 +360,11 @@ __start_%[1]s()
__%[1]s_process_completion_results
}
# compopts are already set, we don't have to specify them here
if [[ $(type -t compopt) = "builtin" ]]; then
complete -o default -F __start_%[1]s %[1]s
else
complete -F __start_%[1]s %[1]s
fi
# ex: ts=4 sw=4 et filetype=sh
`, name, compCmd,