svn commit: r325092 - head/usr.bin/fortune/datfiles

Alexey Dokuchaev danfe at FreeBSD.org
Mon Oct 30 15:16:28 UTC 2017


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


More information about the svn-src-head mailing list