BTS

Issue1253

Title zshrc prompt behaviour
Priority bug Status resolved
Superseder Nosy List hrubi
Assigned To Topics

Created on 2013-04-10.10:50:00 by hrubi, last changed 2013-07-08.09:15:34 by mika.

Files
File name Uploaded Type Edit Remove
grml-zsh-config-prompt.patch hrubi, 2013-04-10.10:50:00 text/plain
Messages
msg4583 (view) Author: mika Date: 2013-07-08.09:15:34
We believe that your issue has been closed by the upload of
Version 0.8.2 of grml-etc-core from Michael Prokop <mika@grml.org>.
The explanation is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 08 Jul 2013 10:59:29 +0200
Source: grml-etc-core
Binary: grml-etc-core
Architecture: source all
Version: 0.8.2
Distribution: grml-testing
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-etc-core - core etcetera files for the grml system
Changes: 
 grml-etc-core (0.8.2) grml-testing; urgency=low
 .
   [ Christian Hesse ]
   * [21be0f4] print error code in bold
 .
   [ Bernhard Tittelbach ]
   * [3c6ce0c] make help-zle work with new bind2maps
 .
   [ Michael Prokop ]
   * [6c3c1d6] zshrc: drop duplicated "Complete word from GNU screen
     buffer" documentation. Thanks to Frank Terbeck <ft@grml.org> for the
     hint
 .
   [ Frank Terbeck ]
   * [89815de] Fix Virtualenv prompt example
 .
   [ Jan Hruban ]
   * [d5f9c90] zshrc: Fix style lookup of `post' styles in prompt setup
     [Closes: issue1253]
Checksums-Sha1: 
 48c1d1e598536a925bdef04370928c3264fe666e 945 grml-etc-core_0.8.2.dsc
 d5cb9e00ca51bde89e94791beabf771af63c1392 149869 grml-etc-core_0.8.2.tar.gz
 cf130ad7295b416e2d78ab9404ed82ee85b4a8bd 153454 grml-etc-core_0.8.2_all.deb
Checksums-Sha256: 
 17ea578bdea5813568b543632b532425722ff6cd55cb980d7417db375c461aa3 945 grml-etc-core_0.8.2.dsc
 76d4ef8d1b1301a9324305cb74f0f4dc3a040906406c24a67152c25f547340fe 149869 grml-etc-core_0.8.2.tar.gz
 7789201c01802a3c1c8e889ed5ae0d38a9f12830bd1e3c082382e25f38c02a50 153454 grml-etc-core_0.8.2_all.deb
Files: 
 808d90f543b793ffdd4aac15debd3558 945 grml optional grml-etc-core_0.8.2.dsc
 ed5cd0c69af6cacf39910f8ff05adf64 149869 grml optional grml-etc-core_0.8.2.tar.gz
 557bec1ac7d90b650d49dd9f425cdde7 153454 grml optional grml-etc-core_0.8.2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlHagUMACgkQ2N9T+zficuiVpgCcCRJVFnsyMtbLEzSnfRsklBmP
mBYAn3AbehiDLpYPq8DuFla4PFgFqfAr
=oShj
-----END PGP SIGNATURE-----
msg4558 (view) Author: ft Date: 2013-04-10.12:31:15
Thanks!

The fix looks correct. I've committed it to git:

 
http://git.grml.org/?p=grml-etc-core.git;a=commitdiff;h=d5f9c90f24b44699313ae6f2d4ac57d95d168c38

In the future, if you could prepare patches from the git
repository using `git format-patch', that would be awesome,
because it would make attribution that much easier. :)

Nevertheless, thanks for looking into this!
msg4557 (view) Author: hrubi Date: 2013-04-10.10:50:00
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
History
Date User Action Args
2013-07-08 09:15:34mikasetstatus: fixed-in-git -> resolved
messages: + msg4583
2013-04-10 12:31:15ftsetstatus: unread -> fixed-in-git
priority: bug
messages: + msg4558
2013-04-10 10:50:00hrubicreate