delorie.com/archives/browse.cgi | search |
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 |
Message-ID: | <431C795F.D9F3CF45@dessent.net> |
Date: | Mon, 05 Sep 2005 09:59:11 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: auto completion problem |
References: | <loom DOT 20050905T104805-831 AT post DOT gmane DOT org> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
yosi wrote: > I am using cygwin on a win-2k OS. > I am working using bash xterms (I start them with startx command). > on those xterms auto completion from history doesn't work. > > I am familiar with the solaris equivalent. In solaris pressing tab or ESC+P will > cause the shell to complete the command if the prefix matches a previous command > in the history. > > Is there any way I can make this work on cygwin? The default behavior of bash is for TAB to complete filenames, not commands. Additionally, it will not do anything if there is more than one match unless you press TAB twice. You can change all of this in the ~/.inputrc file though -- see "man readline". For what it's worth I have the following in mine, among many other things: set completion-ignore-case On set show-all-if-ambiguous On "\e[5~": history-search-backward "\e[6~": history-search-forward The first two cause completion to not be case sensitive, and to not require a double keystroke to list the possible choices for filename completion. The latter two cause PageUp and PageDown to search the command history for a completion of what has been typed so far. Brian -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |