Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Prevent auto complete of non-executable files in path
- X-seq: zsh-users 24878
- From: Alan <8fvebtoeq87@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Prevent auto complete of non-executable files in path
- Date: Wed, 27 May 2020 12:53:25 -0400
- In-reply-to: <CAL7A0-Ov8oT6Wzq=NfHhz_cEO0PQHFLhTx2V2ST2ZpSNwhotpg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAL7A0-Ov8oT6Wzq=NfHhz_cEO0PQHFLhTx2V2ST2ZpSNwhotpg@mail.gmail.com>
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!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author