Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2017 15:16:27 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Dan Mack <mack@macktronics.com>
Cc:        Devin Teske <devin@shxd.cx>, "src-committers@freebsd.org" <src-committers@freebsd.org>, Eitan Adler <eadler@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, Cy Schubert <Cy.Schubert@komquats.com>, Ed Maste <emaste@freebsd.org>, Warner Losh <imp@bsdimp.com>
Subject:   Re: svn commit: r325092 - head/usr.bin/fortune/datfiles
Message-ID:  <20171030151627.GA74374@FreeBSD.org>
In-Reply-To: <m28tfsofph.fsf@macktronics.com>
References:  <201710291851.v9TIpM0I073542@slippy.cwsent.com> <B855A05D-E1BB-485F-AB8D-9F9656F531CC@shxd.cx> <m28tfsofph.fsf@macktronics.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 30, 2017 at 09:47:22AM -0500, Dan Mack wrote:
> ...
> I use ESC-P / ESC-N a lot; it's a neat feature that tcsh has had for a
> long time, maybe since the beginning.  However it's a tcsh feature, not
> sh, bash, or csh IIRC.  But csh is actually tcsh on FreeBSD but I'm sure
> most people already know this on this list.

It is the same as up/down arrows?  Yeah, one of the best tcsh(1) features!

> To emulate this behaviour in bash, I simply create a .inputrc file in my
> $HOME with the following contents:
> 
>  # .inputrc field
>  "\ep": history-search-backward
>  "\en": history-search-forward

On GNU/Linux boxes mine has:

  "\e[A": history-search-backward
  "\e[B": history-search-forward

./danfe



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