[issue2267] zshrc prompt styling documentation unclear - sad-smiley hard to disable
Frank Terbeck
bts at bts.grml.org
Sat Oct 15 04:04:22 CEST 2016
Frank Terbeck <ft at grml.org> added the comment:
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.
----------
assignedto: ft
messages: 5940, 5943
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>
_____________________________________
More information about the Bugs-changes
mailing list