Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: gcc completion



> 
> 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