Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: non-executables in PATH and tab-completion
- X-seq: zsh-users 26578
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: non-executables in PATH and tab-completion
- Date: Mon, 8 Mar 2021 16:23:10 +0000 (GMT)
- Archived-at: <https://zsh.org/users/26578>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-03/972212157.296645.1615220590982%40mail2.virginmedia.com>
- Importance: Medium
- In-reply-to: <20210308161038.GA2069@gmx.de>
- List-id: <zsh-users.zsh.org>
- References: <20210308161038.GA2069@gmx.de>
> On 08 March 2021 at 16:10 Dominik Vogt <dominik.vogt@xxxxxx> wrote:
> If there are files without executable flags in the PATH, zsh still
> completes these. (a) Is this a bug? (b) can this be disabled?
This option is what you need to know about... it's not specific to
completion, which just uses the normal command hash table.
HASH_EXECUTABLES_ONLY
When hashing commands because of HASH_CMDS, check that the file to be
hashed is actually an executable. This option is unset by default as if
the path contains a large number of commands, or consists of many remote
files, the additional tests can take a long time. Trial and error is
needed to show if this option is beneficial.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author