| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Thorsten Kampe <thorsten AT thorstenkampe DOT de> |
| Subject: | Re: auto complete history |
| Date: | Mon, 12 May 2008 08:54:46 +0200 |
| Lines: | 21 |
| Message-ID: | <g08pe3$hnf$1@ger.gmane.org> |
| References: | <2d4e447c0805101805y43638f2vaa1945954e79bb54 AT mail DOT gmail DOT com> |
| Mime-Version: | 1.0 |
| User-Agent: | MicroPlanet-Gravity/2.70.2067 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| 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 |
* Robert Bram (Sun, 11 May 2008 11:05:38 +1000)
> In a previous installation of Cygwin, I had 'history auto complete' in
> so far as I could type a letter, press the up key and the prompt would
> cycle through the most recent entries in history whose first letter
> matches the letter I typed. On my newest install, this feature isn't
> present. Can anyone please let me know how to put it in place?
Depends on your shell. In Zsh it would be...
bindkey '\e[A' history-beginning-search-backward
bindkey '\e[B' history-beginning-search-forward
and in Bash...
"\e[A": history-search-backward
"\e[B": history-search-forward
Put these in your .zshrc or .inputrc.
Thorsten
--
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 |