Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cvsvimdiff zshism
- X-seq: zsh-users 11262
- From: Chris Johnson <cjohnson@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: cvsvimdiff zshism
- Date: Fri, 9 Mar 2007 12:23:08 -0500
- In-reply-to: <87649al6bk.fsf@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070309161209.GA30333@xxxxxxxxxxxxxxxxxx> <87649al6bk.fsf@xxxxxxxxxxxxxxxx>
Philippe Troin sent me the following 0.8K:
> > So, in order to make cvs diff work with vimdiff, I wrote the following
> > function that exploits zsh's tmp file substitution mechanism. It's not
> > very robust, 'cuz I don't know all the ways to break it yet. But here's
> > a start:
>
> Why not simply:
>
> cvsvimdiff() {
> if [[ $# -ne 2 ]] then
> print Usage: $0 old_version file >& 2
> return 1
> fi
>
> vimdiff $2 =(cvs -Q up -r $1 -p $2)
> }
I like it. Thanks! I didn't know of the -p option.
--
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author