WARNING: CURRENTLY BROKEN WITH BASH VERSION 3.0 OR LATER
Xpcomp is a set of bash builtins (on top of the bash programmable completion) that make programming completions easier. For commands that follow common command line syntax (most of them do), the completion specification is done for each command option separately. Completion of option names and arguments is then done by xpcomp. The completion database can be written to and read from binary cache files, so large databases can be shared.
Completions scripts for about 100 commands are packaged in the 'xpcomp-completions' tar-archive.
See the file named INSTALL in the 'xpcomp' tar-archive for how to build the xpcomp builtins and how to use the completion scripts from the 'xpcomp-completions' tar-archive .
Alternatively you can install the debian packages 'xpcomp' and 'xpcomp-completions' (built for debian sid).
The 'xpcomp' package contains everything to build your own completions.
The 'xpcomp-completions' package contains the completion scripts and installs the system-wide completion cache file.
In order to apt-get the debian packages, add the following line to /etc/apt/sources.list :
deb http://savannah.nongnu.org/download/xpcomp ./
These details are provided for information only. No information here is legal advice and should not be used as such.