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:

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

http://www.smasher.org/zsh/zshrc-v0.147.gz



--
        ...atom

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

	"Facts change from time to time."
		-- Donald Rumsfeld



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