From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25795 invoked from network); 14 May 2005 06:09:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 May 2005 06:09:39 -0000 Received: (qmail 40215 invoked from network); 14 May 2005 06:09:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 May 2005 06:09:31 -0000 Received: (qmail 4078 invoked by alias); 14 May 2005 06:09:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8828 Received: (qmail 4064 invoked from network); 14 May 2005 06:09:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 May 2005 06:09:24 -0000 Received: (qmail 39146 invoked from network); 14 May 2005 06:09:24 -0000 Received: from hydrogen.ucsc.edu (128.114.41.29) by a.mx.sunsite.dk with SMTP; 14 May 2005 06:09:18 -0000 Received: from localhost (localhost [127.0.0.1]) by hydrogen.ucsc.edu (8.12.11/8.12.11) with ESMTP id j4E63bJw020353; Fri, 13 May 2005 23:03:38 -0700 (PDT) Date: Fri, 13 May 2005 23:09:14 -0700 (PDT) From: William Scott X-X-Sender: wgscott@vanunu.ucsc.edu To: Motoi Washida cc: zsh-users@sunsite.dk Subject: Re: _mac_applications patch for Mac OS X 10.4 In-Reply-To: <99f48182176da7821de484c3b229c08d@h8.dion.ne.jp> Message-ID: References: <7b8af038c3699b3dc88c7212781bffe9@chemistry.ucsc.edu> <99f48182176da7821de484c3b229c08d@h8.dion.ne.jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-1.9 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -1.9 Dear Motoi: As I said, they are not works of art. In the case of the open and fink completions, I had written my own functions but when yours were made available I saw that they were much superior in almost every respect, but being highly impatient I hacked out what I used for faster completions and grafted or tricked your completions into using my hacks. As you say, it is unlikely the best or most efficient way to do this, but at least it is a proof of principle. With OS X 10.4, the problem at least for _open is now much easier, and if some clever person comes up with an instantaneous replacement for making a call to "fink index" after every update or install command, that obviously would be of tremendous benefit too. For the record, I put comments like this at the top of the files that I altered: # Author: Motoi Washida # modified by W G Scott # Nov 28, 2004 from the # November 12 2004 CVS version All the best, Bill On Sat, 14 May 2005, Motoi Washida wrote: > Hi Bill, > > On 2005/05/12, at 3:32, William Scott wrote: > > > I wrote an augmented open function and hacked an _open completion for > > it based on Motoi's version. The open function and its dependencies > > are here: > > > > http://www.chemistry.ucsc.edu/%7Ewgscott/mystuff/zsh_tree.html > > > > This gives open a few extra (non-apple) arguments, like open -p to > > open preference panes, open -w to open widgets, open -x to open x11 > > apps, and so forth. > I checked your zsh-templates Fink package some time ago. I think your > extensions are very useful, but some scripts seem to be written by > copying and modifying files from original zsh distribution. It is not > efficient and I hope you can write your scripts by just calling > original functions, although I've not looked at your code well and have > no idea about that for now. :( > > > Also I hacked the _fink completion function and made a function fink > > (same page) that updates the cache after an installation, update, and > > so on. > > > > Please feel free to incorporate and/or improve any of these. I wrote > > them to learn shell scripting so they are unlikely to be works of art. > > > -- > Motoi Washida >