From: Bart Schaefer <schaefer@brasslantern.com>
To: Matt Garman <garman@raw-sewage.net>
Cc: zsh-users@sunsite.dk
Subject: Re: HASH_LIST_ALL?
Date: Wed, 13 Oct 2004 19:43:35 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.61.0410131937060.24408@toltec.zanshin.com> (raw)
In-Reply-To: <20041013200240.GA27249@raw-sewage.net>
On Wed, 13 Oct 2004, Matt Garman wrote:
> If I understand the purpose of the HASH_LIST_ALL setting, I should
> be able to add a program to my path, and have that program be
> accessable via tab-completion without running "rehash" (i.e., the
> rehash is automatic upon a tab-completion attempt for a command).
Unfortunately that's almost exactly the opposite of what it means.
What HASH_LIST_ALL means is that the *first* time you do completion of
command word -- not the first time for each new command; the single first
time you complete with the cursor in the command word position -- that the
entire search path is added to the hash. The alternative, with the option
unset, is for the hash search to stop as soon as it finds the command in
question, then continue where it left off if necessary later. In neither
case are previously-hashed directories searched again (except for relative
paths like "." and "..") until after a "rehash" is done.
next prev parent reply other threads:[~2004-10-14 2:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-13 20:02 HASH_LIST_ALL? Matt Garman
2004-10-14 2:43 ` Bart Schaefer [this message]
2004-10-14 3:41 ` HASH_LIST_ALL? Matt Garman
2004-10-14 15:37 ` HASH_LIST_ALL? Bart Schaefer
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=Pine.LNX.4.61.0410131937060.24408@toltec.zanshin.com \
--to=schaefer@brasslantern.com \
--cc=garman@raw-sewage.net \
--cc=zsh-users@sunsite.dk \
/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).