From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4303 invoked from network); 15 Jun 1998 00:27:39 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 15 Jun 1998 00:27:39 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id UAA03778; Sun, 14 Jun 1998 20:18:11 -0400 (EDT) Resent-Date: Sun, 14 Jun 1998 20:17:54 -0400 (EDT) Message-ID: <19980615021859.B6601@math.fu-berlin.de> Date: Mon, 15 Jun 1998 02:18:59 +0200 From: Sven Guckes To: zsh-users@math.gatech.edu Subject: Re: completion control for "man" command Mail-Followup-To: zsh-users@math.gatech.edu References: <19980613204012.S3086@math.fu-berlin.de> <19980614015032.30444@picard.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.92.8i In-Reply-To: =?iso-8859-1?Q?=3C19980614015032=2E30444=40picard=2Efranken=2Ede=3E=3B_f?= =?iso-8859-1?Q?rom_Thomas_K=F6hler_on_Sun=2C_Jun_14=2C_1998_at_01:50:32A?= =?iso-8859-1?Q?M_+0200?= X-Mailer-Info: http://www.math.fu-berlin.de/~guckes/mutt/ Resent-Message-ID: <"FjXib2.0.Mw.nW6Xr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1617 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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. :-/ Besides, I wouldn't want to set up a cron job for this, either. 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. ;-) 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. ;-) Also, I wouldn't mind some more examples in the zsh manuals... Sven [who promises to add all his zsh examples to his zsh page SOON]