Re: [PATCH] shell options in prompt

2014-11-14 Thread Piotr Grzybowski
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 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 pr

Re: [PATCH] shell options in prompt

2014-11-14 Thread Greg Wooledge
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@ ~/bash $ set +hm > (iBH)merlin@ ~/bash $ > > \o gets replaced by all options that are on and visible via set

[PATCH] shell options in prompt

2014-11-14 Thread Piotr Grzybowski
Hi, I would like to propose a patch, that allows to use \o in prompt: $ PS1="(\o)\u@\h \w $ " (himBH)merlin@ ~/bash $ set +hm (iBH)merlin@ ~/bash $ \o gets replaced by all options that are on and visible via set -o. do you think it can be useful? (I hope this feature is not already so