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

Re: non-executables in PATH and tab-completion



> 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