On Sat, Sep 13, 2008 at 4:08 PM, Jim Cheetham <[EMAIL PROTECTED]> wrote: > On Sat, Sep 13, 2008 at 3:24 PM, Aidan Gauland <[EMAIL PROTECTED]> wrote: >> Has anyone here, by any chance, written their own TAB-completions for bash? >> I want to make a very simple one to only consider files ending in ".image" >> to be completions for the command "squeak" (and another similar one for a >> different program). So I could type "squeak TAB" and the only image file in >> the current directory will show up. > > I haven't played with them, but looking at /etc/bash_completion, it > seems to be something like > > complete -f -X '!*.image' squeak > > That passes simple testing from my shell ...
I fear that the bash manual pape and the file /usr/share/doc/bash/README.bash_completion.gz indicate that it's just a tad more complex than that. -- Sincerely etc. Christopher Sawtell
