[issue1253] zshrc prompt behaviour

Jan Hruban bts at bts.grml.org
Wed Apr 10 12:50:00 CEST 2013


New submission from Jan Hruban <hrubi at hrubi.cz>:

Hi,

I'm using the grml-zsh-config, version 0.8.1-1 in Arch Linux.

I tried to configure colors of the grml zsh prompt via the following:

8<----------------------------------------------------------------------
zstyle ':prompt:grml:*:items:host' pre '%F{yellow}'
zstyle ':prompt:grml:*:items:host' post '%f'
8<----------------------------------------------------------------------

But the second line with 'post' is not honored.

Attaching a patch, which fixes that.

Regards,
Jan Hruban

----------
files: grml-zsh-config-prompt.patch
messages: 4557
nosy: hrubi
status: unread
title: zshrc prompt behaviour

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1253>
_____________________________________
-------------- next part --------------
--- /etc/zsh/zshrc.bck	2013-04-10 12:36:08.009446430 +0200
+++ /etc/zsh/zshrc	2013-04-10 12:38:17.594262841 +0200
@@ -2035,7 +2035,7 @@
     for it in "${items[@]}"; do
         zstyle -s ":prompt:${grmltheme}:${lr}:items:$it" pre apre \
             || apre=${grml_prompt_pre_default[$it]}
-        zstyle -s ":prompt:grml:${grmltheme}:${lr}:$it" post apost \
+        zstyle -s ":prompt:${grmltheme}:${lr}:items:$it" post apost \
             || apost=${grml_prompt_post_default[$it]}
         zstyle -s ":prompt:${grmltheme}:${lr}:items:$it" token new \
             || new=${grml_prompt_token_default[$it]}


More information about the Bugs-changes mailing list