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

Re: Duplicate completion for external commands on Cygwin



* 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