Consider this one-liner to activate bash completion for foobar
:
complete -F _known_hosts foobar
This shows a list of completion options for
> foobar <TAB> <TAB>
but not for
> $(foobar <TAB> <TAB>
or
> `foobar <TAB> <TAB>
I think it makes a lot of sense to have tab completion for expressions that are inside backticks or $(). How can I make this work?