Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: HASH_LIST_ALL?
- X-seq: zsh-users 8057
- From: Matt Garman <garman@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: HASH_LIST_ALL?
- Date: Wed, 13 Oct 2004 22:41:34 -0500
- In-reply-to: <Pine.LNX.4.61.0410131937060.24408@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041013200240.GA27249@xxxxxxxxxxxxxx> <Pine.LNX.4.61.0410131937060.24408@xxxxxxxxxxxxxxxxxx>
- Reply-to: Matt Garman <garman@xxxxxxxxxxxxxx>
On Wed, Oct 13, 2004 at 07:43:35PM -0700, Bart Schaefer wrote:
> In neither case are previously-hashed directories searched again
> (except for relative paths like "." and "..") until after a
> "rehash" is done.
I see. Is there a simple way to achieve the behavior you describe
above?
I asked the same question on the gentoo-user mailing list, and one
person gave the following suggestion:
###############################################
rehashComplete() {
rehash;
zle expand-or-complete;
}
zle -N rehash-complete rehashComplete
bindkey "\t" rehash-complete
###############################################
That works (meaning, it makes the shell behave as I want), but I was
just hoping there was a simpler method, i.e. "setopt something".
Anyway, thanks for the helpful information!
Matt
--
Matt Garman
email at: http://raw-sewage.net/index.php?file=email
Messages sorted by:
Reverse Date,
Date,
Thread,
Author