From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12433 invoked from network); 28 May 2020 01:16:18 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 28 May 2020 01:16:18 -0000 Received: (qmail 5040 invoked by alias); 28 May 2020 01:16:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24880 Received: (qmail 12605 invoked by uid 1010); 28 May 2020 01:16:05 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f176.google.com by f.primenet.com.au (envelope-from <8fvebtoeq87@gmail.com>, uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25821. spamassassin: 3.4.4. Clear:RC:0(209.85.208.176):SA:0(-1.7/5.0):. Processed in 1.713175 secs); 28 May 2020 01:16:05 -0000 X-Envelope-From: 8fvebtoeq87@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.176 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Fe1eTtACBpy19U3mGKelwJhIhQ6N2JcXOji4J2UmClU=; b=MpICrETorVpyUc6UUnHNA+W441ZUfHRKvCB9USyjtBJmK12JRU24A6bilvg5JeeQm1 gmBL0xXxPfpdwjXEPTyD2rmk9/ng8amxkwioFzWUkKgWYmLZ2fWLNY+kKHW5qBkLDGGU g6cUV5aOYE0eCez3GA4wli5xjnIkpeMXi3jcwvL/8621ih8fn+dGK7yqLE3OEl5c0Jyi fNy7ykedIm0pj3ffPO5lhsl/8WLw1R87rWrgC/H+TfvDxIhoz5i7JHnQJNLhc2fR6ZHv Ow5AWAz5QjFtoe4EV9+Zyt1WlqhIr57SxZkpiWyLr8g+D0Wv6onLvzYecu0d633n+0kz Hlmg== X-Gm-Message-State: AOAM533Nj8NyVrGyzij/LknUG3Mt1e018atXwAv2/7ao+3whkNq9xn4/ /ys62fP1GJPsR8XNzUhEAu3zw+NgpQTM/VFly4mLwY8o0Vs= X-Google-Smtp-Source: ABdhPJxsF1/P6c/ZpYFRauDSkMXsRACceD8sqCsRT9wplwaYYM3tt7u+p26bE2te3K0rDbTc+p4luES/NbL2x3ygoMY= X-Received: by 2002:a2e:805a:: with SMTP id p26mr176571ljg.239.1590628528590; Wed, 27 May 2020 18:15:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alan <8fvebtoeq87@gmail.com> Date: Wed, 27 May 2020 21:15:17 -0400 Message-ID: Subject: Re: Prevent auto complete of non-executable files in path To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="0000000000006a946105a6ab10ef" --0000000000006a946105a6ab10ef Content-Type: text/plain; charset="UTF-8" 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 > 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 > asdf1 > asdf2 > > How can I get zsh to only auto complete executable files in the $PATH? > > Thanks for your help, much appreciated! > > --0000000000006a946105a6ab10ef--