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 22963 invoked from network); 27 May 2020 16:54:22 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 27 May 2020 16:54:22 -0000 Received: (qmail 29473 invoked by alias); 27 May 2020 16:54:11 -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: 24878 Received: (qmail 27048 invoked by uid 1010); 27 May 2020 16:54:11 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f174.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.174):SA:0(-1.7/5.0):. Processed in 0.743957 secs); 27 May 2020 16:54:11 -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.174 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=yukHGVLCmChwlAII4Dhnvjz76cXBdFKSX62rRzWGDqs=; b=Ueo+sb9KbQSRjXInsrxgGwWPRBHbBQ86V0iZeRfcU0kDklOblHeDqKEHrai7c4c7XH lnVundLQvZzMroWd4Ar1nqIDfMVCSp7I/r5y1MdYsIdkZA+tb6/WGtTpkX2ocTZcC5SH ZinlXlSpIyqjZVAFFjQfNo6QefzwdP81s4lMvfVjaznGzMdfAPxZzocFHEHGFodxE46/ kQVC9ct42wGGMdlsLWXfWGuENPLp7q0ePfWT4w+jrOvmhmFEV06Dr3HBTbX9DpYm/bHy 2lWntkmPmccD0H41PUltqgcWTrcwl1cM1i4HkOlr/ansYJQjwB8y4eLGHEDrxMFkIID1 CtvA== X-Gm-Message-State: AOAM530GLi+0j2fnPYiX0sfPAcqLEJG/BNChtumKmaQUREdv82bzG+NW HDVjFTNAAQm3Ci/CLyDuHv3eSil4f90U/skPK2aFlENs X-Google-Smtp-Source: ABdhPJyFTVlZ6I8/oZhdhyL7fnaewp3F51LmL3wSR59ImtuzO9w53qKHajE1rI8e9yXKUidNh+DcYIVZ+UFxvAKLUyk= X-Received: by 2002:a2e:9f43:: with SMTP id v3mr3679150ljk.285.1590598416562; Wed, 27 May 2020 09:53:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alan <8fvebtoeq87@gmail.com> Date: Wed, 27 May 2020 12:53:25 -0400 Message-ID: Subject: Prevent auto complete of non-executable files in path To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="00000000000099838505a6a40d5c" --00000000000099838505a6a40d5c Content-Type: text/plain; charset="UTF-8" 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! --00000000000099838505a6a40d5c--