Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: gcc completion
- X-seq: zsh-users 4502
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "'Vincent Lefevre'" <vincent@xxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: RE: gcc completion
- Date: Fri, 23 Nov 2001 17:02:38 +0300
- Importance: Normal
- In-reply-to: <20011123144536.A4447@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
>
> With the gcc completion distributed with zsh, could the .c files be
> ignored after the -o option, perhaps by proposing file instead of
> file.c?
>
bor@itsrm2% gcc -o ^Xh
tags in context :completion::complete:gcc::
option-o-1 (_arguments _gcc)
tags in context :completion::complete:gcc:option-o-1:
all-files (_files _arguments _gcc)
So setting ignored-patterns for the latter context should do the trick,
i.e. something like
zstyle ':completion::complete:gcc:option-o-1:all-files' ignored-patterns
'*.c'
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author