Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Rehash after installs



On Sun, Aug 14, 2011 at 05:02:13PM +0200, Mikael Magnusson wrote:

>> The man page however seems to say that a rehash is issued on *every*
>> external command completion request. Is it possible to rehash only on
>> every *failed* external command completion request.
>>
>> I guess it doesn't really matter so much as I can't (yet) notice too
>> much of a performance penalty.
> 
> Sure, but then you would still get incorrect completions as long as
> you typed something that can be completed to another command, ie you
> installed foobara and had foobaza already, so fooba<tab> would give
> you foobaza, while foobar<tab> would give foobara.

That's true! I guess completion style rehash is the way to go.

Thanks,

Gautam

-- 
Modern Computer Viruses:
Texas Virus -- Makes sure it's bigger than any other file.



Messages sorted by: Reverse Date, Date, Thread, Author