This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Zsh observations


Hello Andrej,

At 13:33 5-7-2001, Andrej Borsenkow wrote:
>Apply this patch and do it :-) It was lost when gcc stopped setting _WIN32
>by default.
>
>Note, that it will make completion list executables twice - as foo and
>foo.exe. With new completion you may want to set something like
>
>zstyle ':completion::complete:-command-:*' ignored-patterns
>'*.(#i)(exe|dll)'
>
>to prevent *.exe and *.dll from appearing in the list (given, that every
>foo.exe is already hashed as foo, it is O.K.; and dll is not executable
>anyway - or is it?)

This works very nicely, with one exception.
If I'm trying to complete an executable in the current directory, e.g.
         % setu<TAB>
it will give me neither "setup", nor "setup.exe".  This is logical, because 
the special .exe handling is only for the PATH hash.

Would you know a workaround for that?

Thanks,

  - Michael

(Wouldn't it be nice if Cygwin did this foo.exe -> foo handling 
automagically for us?)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]