Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2017 09:47:22 -0500
From:      Dan Mack <mack@macktronics.com>
To:        Devin Teske <devin@shxd.cx>
Cc:        Cy Schubert <Cy.Schubert@komquats.com>, "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>, Ed Maste <emaste@freebsd.org>, Warner Losh <imp@bsdimp.com>
Subject:   Re: svn commit: r325092 - head/usr.bin/fortune/datfiles
Message-ID:  <m28tfsofph.fsf@macktronics.com>
In-Reply-To: <B855A05D-E1BB-485F-AB8D-9F9656F531CC@shxd.cx> (Devin Teske's message of "Sun, 29 Oct 2017 12:47:59 -0700")
References:  <201710291851.v9TIpM0I073542@slippy.cwsent.com> <B855A05D-E1BB-485F-AB8D-9F9656F531CC@shxd.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
Devin Teske <devin@shxd.cx> writes:

<snip>

>> Or better yet, ctrl-r in bash and zsh, or up-arrow in tcsh.
>
> Since we are responding to emaste's astute observation with random
> personal favorites when it comes to history actions in an interactive
> shell...
>
> How about Esc-P and Esc-N?

In continuation of the tangent ---

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.

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


Works for me.

Dan



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