X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Blake <ebb9@byu.net>
Subject:  Re: [ANNOUNCEMENT] Updated: vim-7.0.122-1
Date: Thu, 12 Oct 2006 14:20:38 +0000 (UTC)
Lines: 22
Message-ID:  <loom.20061012T161737-869@post.gmane.org>
References:  <452D2696.3060602@users.sourceforge.net>      <014c01c6ed5b$d6a1e9a0$a501a8c0@CAM.ARTIMI.COM>     <egjc38$teg$1@sea.gmane.org>      <20061012065523.GP13105@calimero.vinschen.de>      <20061012111836.GA29649@trixie.casa.cgf.cx>     <20061012115416.GB8323@calimero.vinschen.de>  <51442.84.246.168.11.1160654571.squirrel@mail.morrison.mine.nu> <Pine.GSO.4.63.0610120924170.28291@access1.cims.nyu.edu>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

