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

Re: Duplicate completion for external commands on Cygwin



On Thu, 9 Apr 2009, Thorsten Kampe wrote:

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'
===================

a slight improvement makes the match case insensitive:

[[ ${OSTYPE} == cygwin ]] && zstyle \
  ':completion:*:-command-:*' ignored-patterns '(#i)*.exe' '(#i)*.dll'

thanks bart & thorsten!


--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"Any society which does not insist upon respect for all
	 life must necessarily decay."
		-- Albert Einstein



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