I've noticed that some programs have their own tab-completion.
For example, git:
git checkout
allows for tab completion of branch names.
How is this accomplished?
I've noticed that some programs have their own tab-completion.
For example, git:
git checkout
allows for tab completion of branch names.
How is this accomplished?
Use compgen
and complete
(article about custom bash completing).