Is there any way to specify what readline should complete to?
I would really like to switch to bash from tcsh, but I don't know
if I can live without my completion rules. For example, in tcsh,
I can set a variable to a list of available Debian Linux package
names, and provide tcsh with a completion rule that tells it to
choose between these package names for completion when I type
something like:
prompt% apt-get install <Tab>
And in the same completion rule, I can tell it how to complete
apt-get commands, like the word "install" in the command above.
As far as I've been able to discover, readline can only complete
to file/dir names, executable files in my path, variables, and a
few other sets of lists over which I have no control. And even
for these, it seems I have to specify which list I want as I'm
typing the command, rather than being able to specify context
rules for bash to remember for me which list I want.
I welcome anyone's answer who considers her/himself at least at a
medium experience level using bash--whether the answer is
positive or negative.
thanks,
- rick
--
Electrical & Computer Engineering | http://lore.ece.utexas.edu/~rkilgore/
The University of Texas at Austin | (512) 471-8011