Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Duplicate completion for external commands on Cygwin
- X-seq: zsh-users 14021
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Duplicate completion for external commands on Cygwin
- Date: Thu, 9 Apr 2009 18:54:57 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <grk7rh$qg0$2@xxxxxxxxxxxxx> <20090409072938.30193.qmail@xxxxxxxxxxx> <090409084510.ZM24524@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
* Bart Schaefer (Thu, 09 Apr 2009 08:45:10 -0700)
> On Apr 9, 7:29pm, Atom Smasher wrote:
> }
> } > Is there a way to only show "cat" for instance and not "cat" and
> } > "cat.exe"?
> } ==================
> }
> } ## cygwin only: commands that auto-complete with and without .exe suffix
> } ## are annoying.
> } [[ ${OSTYPE} == cygwin ]] && { hash -f ; unhash -m '*.exe' }
>
> Or:
>
> zstyle ':completion:*:-command-:*' ignored-patterns '*.exe'
That works - the hash/unhash stuff didn't make a difference at all. I
finally went for
[[ $OSTYPE = cygwin ]] && zstyle ':completion:*:-command-:*' \
ignored-patterns '*.dll' '*.exe'
...that gets rid of the DLLs and the .exe stuff.
Thanks, Thorsten
Messages sorted by:
Reverse Date,
Date,
Thread,
Author