Hi

One of the missing features of bash has always been the programable
completion. Tcsh features the 'complete' commands that allows you to
modify the behaviour of the tab completion. For instance: if the command
is 'gv', complete only *.ps , and *.pdf . If the command begins with 'ps
and the current switch is '-u' , then complete the next word to a user
name.

A sample csh configuration file with such completions can be found at:

  http://www.technion.ac.il/~tzafrir/Haifux/Samples/ConfigFiles/

(BTW: there's still no emacs file there. Hint, hint...)


Recently (as of version 2.04 (?)) bash has aquired this feature as well.

For a sample config file, have a look at:

  http://freshmeat.net/projects/bashcompletion/

(The site seems to be unavalable at the moment, so I give the URL of the
freshmeat project page).

I had one minor progrlem with their config file: I had to rem-out one
'complete' command that contained a '-g', as my bash claimed that this was
a syntax error.

Any comments?

Any suggestions from the zsh zealots? Any perlsh partizans here?

-- 
Tzafrir Cohen                        /"\
mailto:[EMAIL PROTECTED]        \ /  ASCII Ribbon Campaign
Taub 229, 972-4-829-3942,             X   Against  HTML  Mail
http://www.technion.ac.il/~tzafrir   / \


--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://linuxclub.il.eu.org)
To unsub send an empty message to [EMAIL PROTECTED]


Reply via email to