Zsh Mailing List Archive
Messages sorted by:
Re: completing a single clearcase command
- X-seq: zsh-users 5901
- From: Felix Rosencrantz <f_rosencrantz@xxxxxxxxx>
- To: Eric.D.Friedman@xxxxxxxxxxxxxx, zsh-users@xxxxxxxxxx
- Subject: Re: completing a single clearcase command
- Date: Sun, 9 Feb 2003 13:38:06 -0800 (PST)
- In-reply-to: <8F6C90BF40FFD211948B0001FA7E51661288DF8F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
If you just want something to work, I suggest using Gorgan Koruga's clearcase
completion function as a base, which can be found at:
It handles a small set of the cleartools commands, but I suspect a good
As part of my attempts to automatically create completion functions, I decided
to tackle cleartool, generating a completion function via the help output. I
wanted to automate the process, in order to make it easy to keep up with new
versions. For details:
Based on what you said, it sounds like you might have found the one I
generated, and it wasn't very helpful. Mine has several problems. One
significant problem when you attempt to use it, is that it is missing a
_cc_views function, and other functions that return lists of items (e.g. branch
names, type names,...) You could write your own or steal them from Gorgan's
His function also has examples of creating these "listing functions".
Basically, a listing function is something that runs some command (ct lsview
-short), which generates of list of possible values you want to complete. You
have to parse the command output, find the values you want, and return those in
the proper format.
If there is demand, I would be willing to add my clearcase completion function
to the codeline. It is pretty big, about the same size as the larch completion
function, which seems to be the largest one right now.
Once it is in the codeline, it would be easier for other folks to contribute
changes and make it more useful. I haven't had access to Clearcase for a
while, so it is difficult to get listing functions that work.
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
Messages sorted by: