Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion fails to search in $PATH
- X-seq: zsh-users 2281
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Sameer Siruguri <siruguri@xxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Completion fails to search in $PATH
- Date: Thu, 1 Apr 1999 21:03:00 -0800
- In-reply-to: <19990401132851.A16009@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990401132851.A16009@xxxxxxxxxxxxxxxxx>
On Apr 1, 1:28pm, Sameer Siruguri wrote:
} Subject: Completion fails to search in $PATH
}
} When I create a new executable in some directory that is in my $PATH,
} completion fails to add that to the list when I press TAB.
This appeared on zsh-workers a while back:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author