Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ignoring files with a specific extension
- X-seq: zsh-users 13428
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Ignoring files with a specific extension
- Date: Wed, 05 Nov 2008 11:33:48 +0000
- In-reply-to: <62585.88.73.216.197.1225884415.squirrel@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <62585.88.73.216.197.1225884415.squirrel@xxxxxxxxxxxxxxxxx>
"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