delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/12/10:24:02

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT 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 DOT 3060602 AT users DOT sourceforge DOT net> <014c01c6ed5b$d6a1e9a0$a501a8c0 AT CAM DOT ARTIMI DOT COM> <egjc38$teg$1 AT sea DOT gmane DOT org> <20061012065523 DOT GP13105 AT calimero DOT vinschen DOT de> <20061012111836 DOT GA29649 AT trixie DOT casa DOT cgf DOT cx> <20061012115416 DOT GB8323 AT calimero DOT vinschen DOT de> <51442 DOT 84 DOT 246 DOT 168 DOT 11 DOT 1160654571 DOT squirrel AT mail DOT morrison DOT mine DOT nu> <Pine DOT GSO DOT 4 DOT 63 DOT 0610120924170 DOT 28291 AT access1 DOT cims DOT nyu DOT edu>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019