From owner-svn-src-head@freebsd.org Mon Oct 30 14:47:32 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 550C1E5EDE9; Mon, 30 Oct 2017 14:47:32 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from borg.macktronics.com (gw.macktronics.com [209.181.253.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10667650F2; Mon, 30 Oct 2017 14:47:31 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from pandora.local (olive.macktronics.com [209.181.253.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by borg.macktronics.com (Postfix) with ESMTPS id 477BB3BB; Mon, 30 Oct 2017 09:47:23 -0500 (CDT) From: Dan Mack To: Devin Teske Cc: Cy Schubert , "src-committers\@freebsd.org" , Eitan Adler , "svn-src-all\@freebsd.org" , "svn-src-head\@freebsd.org" , Ed Maste , Warner Losh Subject: Re: svn commit: r325092 - head/usr.bin/fortune/datfiles References: <201710291851.v9TIpM0I073542@slippy.cwsent.com> Date: Mon, 30 Oct 2017 09:47:22 -0500 In-Reply-To: (Devin Teske's message of "Sun, 29 Oct 2017 12:47:59 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 14:47:32 -0000 Devin Teske writes: >> 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