bug-bash
[Top][All Lists]
Advanced

[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

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

 cheers,
pg

On Fri, Nov 14, 2014 at 6:04 PM, Greg Wooledge <wooledg@eeg.ccf.org> 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)\u@\h \w $ "
>> (himBH)merlin@xxxx ~/bash $ set +hm
>> (iBH)merlin@xxxx ~/bash $
>>
>>  \o gets replaced by all options that are on and visible via set -o.
>
> PS1='($-)\u@\h \w \$ '



reply via email to

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