zsh-users
 help / color / mirror / code / Atom feed
From: Alan <8fvebtoeq87@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Prevent auto complete of non-executable files in path
Date: Wed, 27 May 2020 21:15:17 -0400	[thread overview]
Message-ID: <CAL7A0-OS6fPs_Mb0g648yaG70mhcFgT7ueBAq6z5OTAqk=tyWw@mail.gmail.com> (raw)
In-Reply-To: <CAL7A0-NHn9afpn7eZ-2gUkOLGC7b9T6wBFkPVj+x9P_Nvm01YA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 931 bytes --]

Thank you Dave, that worked great!


On Wed, May 27, 2020 at 12:53 PM Alan <8fvebtoeq87@gmail.com> wrote:

> Hi,
>
> I'm switching from bash to zsh (using version 5.8), and one thing that
> bothers me is that zsh auto completes non-executable files in my $PATH.
>
> For example:
>
> $ echo $PATH
> ~/bin:/usr/local/bin:/usr/bin:/bin
> $ ls -l ~/bin/
> -rwx------    1 user staff     95 Jun  5  2019  asdf1
> -rw-------    1 user staff     95 Jun  5  2019  asdf1~
> -rwx------    1 user staff     95 Jun  5  2019  asdf2
> -rw-------    1 user staff     95 Jun  5  2019  asdf3
> $ asd<TAB>
> external command
> asdf1
> asdf1\~
> asdf2
> asdf3
>
> ...whereas in bash, it would only auto complete asdf1 and asdf2 because
> those are the only 2 files in ~/bin/ that are executable:
>
> $ asd<TAB>
> asdf1
> asdf2
>
> How can I get zsh to only auto complete executable files in the $PATH?
>
> Thanks for your help, much appreciated!
>
>

      parent reply	other threads:[~2020-05-28  1:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAL7A0-Ov8oT6Wzq=NfHhz_cEO0PQHFLhTx2V2ST2ZpSNwhotpg@mail.gmail.com>
2020-05-27 16:53 ` Alan
2020-05-27 19:25   ` Dave Wood
2020-05-28  1:15   ` Alan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAL7A0-OS6fPs_Mb0g648yaG70mhcFgT7ueBAq6z5OTAqk=tyWw@mail.gmail.com' \
    --to=8fvebtoeq87@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).