help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] use edit-and-execute-command instead the secondary promp


From: D630
Subject: Re: [Help-bash] use edit-and-execute-command instead the secondary prompt
Date: Fri, 12 May 2017 16:10:09 +0200

On 17-05-12_15_37, Pierre Gaston wrote:
> On Fri, May 12, 2017 at 3:28 PM, Eduardo Bustamante <address@hidden>
> wrote:
>
> > On Fri, May 12, 2017 at 3:45 AM, D630 <address@hidden> wrote:
> > > How about an option to force bash into invoking edit-and-execute-command,
> > > when
> > > bash wants to use the secondary prompt / needs a second line to complete
> > the
> > > command?
> >
> > Why would you need an option to force it? If you're using the emacs
> > mode, just hit Ctrl-x Ctrl-e when you get the secondary prompt.
> > That'll run the edit-and-execute-command function on the partial
> > input.
> >
> >
> I guess it would be a kind of  automagic feature, as soon as I need to
> enter something that doesn't fit on one line, fire up my editor to help me.

Right. Something like:

$ foo | [ENTER]    # --> edit-and-execute-command is invoked

$ if foo then [ENTER]   # "

$ ls \  [ENTER]     # "



reply via email to

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