[issue2267] zshrc prompt styling documentation unclear - sad-smiley hard to disable

Colin Caine bts at bts.grml.org
Sat Oct 15 04:31:01 CEST 2016


Colin Caine <cmcaine at gmail.com> added the comment:

> No, that's not quite right. You only need the second. And to be precise,
> that's a list style, so setting it to the empty list would be correct.
> Thus:
>
>   zstyle ':prompt:grml:right:setup' items

That, and my setting items to '' both seem to work now and I can't
reproduce the problem I thought I was having there with needing to set both
styles. I must have got confused when I was testing last time.

Thanks for correcting me about lists and sorry for the dodgy bug report - I
should have tested more thoroughly :)

> However, I can see how use-rprompt may have confused you. Its name is
> probably a better description of what it does, than is the documentation
> in the prompts help text: If it is on (which is the default), then the
> prompt code is allowed to use the rprompt variables. If it is off, it
> is not. And it will not. It won't unset the prompt either. It leaves
> control over these parameter to the user. So a second way to get rid
> of the sad smiley would be this:
>
>   zstyle ':prompt:grml:right:setup' use-rprompt false
>   RPS1=''
>
> Documentation could be better. I will see if I can take a look at it
> during the day.

Thanks for the clarification.

----------
assignedto: ft
files: unnamed
messages: 5940, 5943, 5944
nosy: cmcaine, ft
priority: bug
status: in-progress
title: zshrc prompt styling documentation unclear - sad-smiley hard to disable
topic: zsh

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue2267>
_____________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.grml.org/pipermail/bugs-changes/attachments/20161015/b72bf90e/attachment.html>


More information about the Bugs-changes mailing list