Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _tar -*Cf*?
- X-seq: zsh-users 3531
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: "Calum Selkirk" <cselkirk@xxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- Subject: Re: _tar -*Cf*?
- Date: Mon, 27 Nov 2000 17:33:49 +0000
- In-reply-to: <20001127070327.J428@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20001125054306.E5448@xxxxxxxxxxxxxxxxxx> <1001126022006.ZM15650@xxxxxxxxxxxxxxxxxxxxxxx> <20001127070327.J428@xxxxxxxxxxxxxxxxxx>
On Nov 27, 7:03am, Calum Selkirk wrote:
} Subject: Re: _tar -*Cf*?
}
} Bart Schaefer [schaefer@xxxxxxxxxxxxxxxxxxxxxxx] wrote:
}
} > On Nov 25, 5:43am, Calum Selkirk wrote:
} >
} > > elif [[ ( CURRENT -gt 2 && "$words[CURRENT-1]" = -*Cf*) ||
} > > ( CURRENT -eq 3 && "$words[2]" = *Cf* ) ]]; then
} > >
} > > I'm pretty new to zsh so forgive my ignorance, but shouldn't this be -C
} > > rather than -Cf to get commpletion on the --directory to change to?
} >
} > It should probably be *C*f*.
}
} Thats what i had originally thought .. but *C*f* would also produce the
} completion on _tar_archive and not _file -/ (which would be my expected
} behavior from the -C switch).
How about [^f]#C* instead? The important thing is that *f*C* should NOT
match.
} I'm planning writting a basic intro (that would only cover 3.1.9 as that
} is all i'm familiar with)
Have you had a look at http://sunsite.dk/zsh/ ? In particular, look at
http://sunsite.dk/zsh/Guide/zshguide.html by Peter Stephenson <pws@xxxxxxx>.
He might be interested in contributions.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author