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

Re: cvs-like file completion



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