An introduction to bash completion: part 1

428
One of the nicest facilities of the modern shell is the built in “completion” support. These facilities allow you to complete commands and their arguments easily. Read on for a brief introduction to adding your own command completions.

Link: Debian-Administration.org