From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27523 invoked from network); 9 Feb 2003 21:38:42 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Feb 2003 21:38:42 -0000 Received: (qmail 18768 invoked by alias); 9 Feb 2003 21:38:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5901 Received: (qmail 18759 invoked from network); 9 Feb 2003 21:38:05 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 9 Feb 2003 21:38:05 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [216.136.130.94] by sunsite.dk (MessageWall 1.0.8) with SMTP; 9 Feb 2003 21:38:4 -0000 Message-ID: <20030209213806.357.qmail@web10402.mail.yahoo.com> Received: from [209.86.241.148] by web10402.mail.yahoo.com via HTTP; Sun, 09 Feb 2003 13:38:06 PST Date: Sun, 9 Feb 2003 13:38:06 -0800 (PST) From: Felix Rosencrantz Subject: Re: completing a single clearcase command To: Eric.D.Friedman@WellsFargo.COM, zsh-users@sunsite.dk In-Reply-To: <8F6C90BF40FFD211948B0001FA7E51661288DF8F@xcem-casfo-13.wellsfargo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii If you just want something to work, I suggest using Gorgan Koruga's clearcase completion function as a base, which can be found at: http://www.zsh.org/mla/users/2001/msg00649.html It handles a small set of the cleartools commands, but I suspect a good used subset. 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: http://www.geocities.com/f_rosencrantz/clearcase_generation.htm 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 function. 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. -FR. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com