svn commit: r325092 - head/usr.bin/fortune/datfiles
Dan Mack
mack at macktronics.com
Mon Oct 30 14:47:32 UTC 2017
Devin Teske <devin at 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
More information about the svn-src-head
mailing list