bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please accept M-p as well as C-p


From: Pierre Gaston
Subject: Re: Please accept M-p as well as C-p
Date: Thu, 13 Feb 2014 16:57:13 +0200

On Thu, Feb 13, 2014 at 1:35 PM, Ed Avis <eda@waniasset.com> wrote:

> Bash accepts the Emacs keybinding C-p to go back in the history, and C-n
> to go forward.
> But most of the time in Emacs (when using its minibuffer) the keys you use
> are Meta-p
> and Meta-n, or on a modern PC keyboard Alt-p and Alt-n.
>
> Currently entering M-p at the bash prompt gives some control characters.
> It could more usefully go back in the history instead.  Then if you flip
> between GNU
> emacs and GNU bash you wouldn't keep typing the wrong thing.
>
> --
> Ed Avis <eda@waniasset.com>
>
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>
>

You can add in your ~/.inputrc

"\ep": previous-history
"\en": next-history


reply via email to

[Prev in Thread] Current Thread [Next in Thread]