In bash, how does autocompletion know the options to complete a command?
For example,
when I hit key Tab after
ls, it will list the files in the current directory.when I hit key Tab after
ebook-convertfrom calibre, it will list*.recipe.
Does the implementation of a program provide the handler of the Tab-hitting event?
zshalso supports custom completions) that it wants to offer good completions in. – Henrik supports the community Aug 16 '23 at 08:44/etc/bash_completion.d/or/usr/share/bash-completion/completions/– OldTimer Aug 22 '23 at 08:48