zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Greg Badros <gjb@cs.washington.edu>, zsh-workers@math.gatech.edu
Subject: Re: auto-rehashing?
Date: Thu, 23 Jul 1998 11:34:02 -0700	[thread overview]
Message-ID: <980723113402.ZM771@candle.brasslantern.com> (raw)
In-Reply-To: <qrrsojz7p22.fsf@tolt.cs.washington.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


      parent reply	other threads:[~1998-07-23 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-18  4:36 auto-rehashing? Greg Badros
1998-07-20  8:22 ` auto-rehashing? Zefram
1998-07-23 18:34 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=980723113402.ZM771@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=gjb@cs.washington.edu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).