[Top][All Lists]

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

Re: [PATCH] shell options in prompt

From: Piotr Grzybowski
Subject: Re: [PATCH] shell options in prompt
Date: Fri, 14 Nov 2014 18:07:56 +0100

 hah. I knew it. forget the previous mail. Consider it just an
academical discussion ;-)


On Fri, Nov 14, 2014 at 6:04 PM, Greg Wooledge <address@hidden> wrote:
> On Fri, Nov 14, 2014 at 06:01:37PM +0100, Piotr Grzybowski wrote:
>>  I would like to propose a patch, that allows to use \o in prompt:
>> $ PS1="(\o)address@hidden \w $ "
>> (himBH)address@hidden ~/bash $ set +hm
>> (iBH)address@hidden ~/bash $
>>  \o gets replaced by all options that are on and visible via set -o.
> PS1='($-)address@hidden \w \$ '

reply via email to

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