From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5362 invoked from network); 23 Jul 1998 18:45:01 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 23 Jul 1998 18:45:01 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id OAA04192; Thu, 23 Jul 1998 14:32:24 -0400 (EDT) Resent-Date: Thu, 23 Jul 1998 14:32:24 -0400 (EDT) From: "Bart Schaefer" Message-Id: <980723113402.ZM771@candle.brasslantern.com> Date: Thu, 23 Jul 1998 11:34:02 -0700 In-Reply-To: Comments: In reply to Greg Badros "auto-rehashing?" (Jul 17, 9:36pm) References: X-Mailer: Z-Mail (4.0b.820 20aug96) To: Greg Badros , zsh-workers@math.gatech.edu Subject: Re: auto-rehashing? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"qiIZZ1.0.O11.t6ujr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4248 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jul 17, 9:36pm, Greg Badros wrote: } Subject: auto-rehashing? } } Can zsh auto-rehash when I hit tab a second consecutive time when } completing in a command position? How about this: function compctl_rehash { rehash; reply=() } compctl -C -c + -K compctl_rehash + -c That says to try command completion, then if that fails, to rehash, and then (because compctl_rehash empties $reply) to try command completion a second time. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com