Devin Teske <de...@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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to