Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cvs-like file completion
- X-seq: zsh-users 11550
- From: Chris Johnson <cjohnson@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: cvs-like file completion
- Date: Tue, 12 Jun 2007 12:11:42 -0400
- In-reply-to: <200706121301.l5CD1SXO026193@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070612121824.GA2770@xxxxxxxxxxxxxxxxxx> <20070612123617.GB12698@xxxxxxxxxxxxxxx> <200706121301.l5CD1SXO026193@xxxxxxxxxxxxxx>
Peter Stephenson sent me the following 1.0K:
> > > That is, I want to complete for a script cvsvimdiff all files that need
> > > committing to the cvs repository. Something like:
> > >
> > > compdef cvsvimdiff="cvs add"
>
> _cvs_only_add() {
> autoload +X _cvs
> _cvs_files_unmaintained "$@"
> }
> compdef _cvs_only_add cvsvimdiff
Thanks, Frank and Peter. This works just great. I mistyped above,
though, with the "cvs add". I intended "cvs commit", for which I can
use the _cvs_files_modified function.
--
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author