Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Duplicate completion for external commands on Cygwin



* Atom Smasher (Thu, 9 Apr 2009 19:29:35 +1200 (NZST))
> On Thu, 9 Apr 2009, Thorsten Kampe wrote:
> > I'm running zsh 4.3.9 on Cygwin and external commands show up twice
> > when I attempt completion (see below). The background is that all
> > external commands are actually Windows executables (cat.exe for
> > example) and made available as commands without the .exe extension
> > by the Cygwin emulation layer.
> >
> > 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' }

Doesn't work for me. No changes...

Thorsten



Messages sorted by: Reverse Date, Date, Thread, Author