This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: vim-7.0.122-1


Igor Peshansky <pechtcha <at> cs.nyu.edu> writes:

> P.S. One annoying thing about /cygdrive is that tab-completion for it is
> annoying OOTB, since there are also /cygwin.bat and /cygwin.ico.  One
> thing I normally do on all new installs is rename those two files to
> /Cygwin.bat and /Cygwin.ico -- since bash uses case-sensitive completion
> by default, this allows /c<Tab> to get to /cygdrive immediately.  Can we,
> perhaps, rename the .bat and the .ico files to start with a capital 'C' on
> new installs?  I'll send a patch to cygwin-apps.

Won't work if you use case-insensitive tab-completion (or in other words, if 
~/.inputrc contains 'set completion-ignore-case on').

However, this works for me, in my ~/.bashrc:
export FIGNORE=cygwin.bat:cygwin.ico

Basically, teach bash that during file completion, it should ignore files whose 
suffix is either one of the two problematic filenames.

-- 
Eric Blake



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]