Let's say I'm creating a wrapper for the Unix program wget called wget-hip. I want wget-hip to get the same shell completion rule as wget because they both happen to have the same command-line options.
So if wget has this completion rule:
complete -F _wget wget
or:
complete -C _wget wget
then I want:
complete -F _wget wget-hip
or:
complete -C _wget wget-hip
Is there a proper way to do this?
complete -p wgetis currentlybash: complete: wget: no completion specification(bash 5.0.3(1)-release, and there is indeed valid completion for wget). – Adam Katz Nov 08 '19 at 16:23