BTS

Message5943

Author ft
Recipients cmcaine
Date 2016-10-15.02:04:22
Content
Hi,

> To disable the sad smiley that appears when a command fails with the default
> zshrc, you need to run these two commands:
>
> zstyle ':prompt:grml:right:setup' use-rprompt false
> zstyle ':prompt:grml:right:setup' items ''

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

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.
History
Date User Action Args
2016-10-15 02:04:22ftsetrecipients: + cmcaine
2016-10-15 02:04:22ftsetmessageid: <1476497062.88.0.590186678947.issue2267@bts.grml.org>
2016-10-15 02:04:22ftlinkissue2267 messages
2016-10-15 02:04:22ftcreate