From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9563 invoked from network); 15 Jun 1998 09:01:49 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 15 Jun 1998 09:01:49 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA08208; Mon, 15 Jun 1998 04:53:31 -0400 (EDT) Resent-Date: Mon, 15 Jun 1998 04:53:20 -0400 (EDT) Message-ID: <19980615105427.02760@willkuere.informatik.uni-wuerzburg.de> Date: Mon, 15 Jun 1998 10:54:27 +0200 From: Thomas Koehler To: Sven Guckes Cc: zsh-users@math.gatech.edu Subject: Re: completion control for "man" command References: <19980613204012.S3086@math.fu-berlin.de> <19980614015032.30444@picard.franken.de> <19980615021859.B6601@math.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: Mutt 0.88 In-Reply-To: <19980615021859.B6601@math.fu-berlin.de>; from Sven Guckes on Mon, Jun 15, 1998 at 02:18:59AM +0200 X-Operating-System: Linux willkuere 2.0.32 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by math.gatech.edu id EAA08164 Resent-Message-ID: <"kP-vY3.0.k_1.-3EXr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1621 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Mon, Jun 15, 1998 at 02:18:59AM +0200, Sven Guckes wrote: > Quoting Thomas Köhler (jean-luc@picard.franken.de): > > I use the following for man completion. It uses a file ~/tmp/_man_ which > > stores the filenames in question. If you don't like your loginshell to > > wait for the creation of the file every now and then (I use 14 days) > > because it creates the _man_-file, just make a cronjob out of this... > > Well, I wouldn't want my completion control to rely on the existence of a file > in /tmp - after all everybody at our site is allowed to delete files in /tmp. > :-/ That's why I use ~/tmp ;-) See the difference? :-) > Besides, I wouldn't want to set up a cron job for this, either. Well, I have that in my .zshrc, no cronjob needed. But then, sometimes the creating of the list when logging in is annoying... > Now, if I can get our sysadmin (hi, Stucki) to create a little database > on man pages (with a cronjob or whatever) - that's fine. And, yes, I do > believe this job can be done with the help of awk, sed, and perl. ;-) Or zsh ;-) > But aren't we discussing the zsh here? Shouldn't there be a way to do > the job with the zsh alone? I'd rather see an elegant solution with > a few commands within the zsh than a perfomant database solution with > SAP's R/3 using a Alpha with 4G RAM. ;-) Well... my completion was written within 3 minutes and I didn't test how long it would take to find all the manpages on-the-fly. But if I think how long it takes to build the file (some seconds), I think it's too slow to run every time I need the completion... > Also, I wouldn't mind some more examples in the zsh manuals... OK, acknowledged :) > Sven [who promises to add all his zsh examples to his zsh page SOON] *looking* tips.html is pretty cool :-) compctl.html should have more explanations, but is OK :) CU, Thomas [still not having a zsh page] -- Thomas Köhler Email: jean-luc@picard.franken.de <>< WWW: http://home.pages.de/~jeanluc/ IRC: jeanluc LCARS --- Linux for Computers on All Real Starships