[Top][All Lists]

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

Re: [PATCH] Support configurable mode strings in prompt

From: Chet Ramey
Subject: Re: [PATCH] Support configurable mode strings in prompt
Date: Sun, 16 Nov 2014 21:48:32 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 11/7/14 7:56 AM, Dylan Cali wrote:
> On Thu, Nov 6, 2014 at 11:53 PM,  <alex.ford@codetunnel.com> wrote:
>> I hope this gets merged in soon. I love the bash vi mode and I love the 
>> realtime mode indicator that we now have with show-mode-in-prompt. If I 
>> could customize that portion of my command line I could add that portion of 
>> the prompt in a much more stylized way. If I could make the color change and 
>> make it say "insert", "visual", and "normal" as the mode changes, that would 
>> be pretty cool.
> As an FYI I've been using this patch on both my work and home boxes
> for several months now without issue.. which isn't saying there aren't
> any, but that includes Debian, Arch, and Centos.

Most of this will be in the next release of bash.  I added some things and
left out the \m prompt expansion for now.  I made an unrelated change that
results in the expanded mode string being displayed before the last
newline, if any, in the prompt and I'd like to see how that works out.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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