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

Re: Ignoring files with a specific extension



"Leslie P. Polzer" wrote:
> what's the most simple way to make zsh completion
> ignore files with a specific extension (here FASL)
> 
>   a) for all commands

  fignore=(.FASL)

or

  fignore+=(.FASL)

to preserve the current contents

>   b) for a certain command (here vim/vi)

  zstyle ':completion::complete:vi(m|):*' ignored-patterns '*.FASL' 

This restricts the effect to just "ordinary" completion, i.e. not all
the various clever additions like spelling correction etc.  To make it
more general,

  zstyle ':completion:*:*:vi(m|):*' ignored-patterns '*.FASL' 

should be good enough.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author