Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2001 16:52:29 -0800 (PST)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        Archie Cobbs <archie@dellroad.org>
Cc:        Jon Parise <jon@csh.rit.edu>, freebsd-current@FreeBSD.ORG
Subject:   Re: proposed small change to .cshrc
Message-ID:  <200101100052.f0A0qTi54396@earth.backplane.com>
References:   <200101100035.f0A0Z8A52612@curve.dellroad.org>

next in thread | previous in thread | raw e-mail | index | archive | help
:Matt Dillon writes:
:>     if ( $?tcsh ) then
:>         bindkey "^W" backward-delete-word
:>         bindkey -k up history-search-backward
:>         bindkey -k down history-search-forward
:>     endif
:
:Why do you need the 'up' and 'down' ones.. doesn't it already do that
:without explicit configuration?
:
:-Archie

    This is the history *search* function.  Lets say you did a complex
    'find' command 5 minutes ago and a hundred intervening commands since,
    and you want to run the 'find' again.  

    You type:

    % fin<up-arrow>

    If you did a bunch of find's, hit up arrow as many times as necessary.
    You can type as few or as many characters as you like prior to hitting
    the up arrow, depends on what you are looking for.

    If you just hit the up or down arrow without having partial text on the
    line, it works just like normal history.  Once you start using it,
    you will never be able to go back.

    This is how the Amiga used to do it.  It's the only right way.

						-Matt



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101100052.f0A0qTi54396>