Debian Bug report logs - #720707
ITP: grml-zshrc -- grml's zsh configuration

Package: wnpp; Maintainer for wnpp is wnpp@debian.org;

Reported by: Thomas Koch <thomas@koch.ro>

Date: Sat, 24 Aug 2013 16:33:06 UTC

Owned by: Axel Beckert <abe@debian.org>

Severity: wishlist

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, thomas@koch.ro, abe@debian.org, grml@ml.grml.org, formorer@debian.org, mika@grml.org, ft@grml.org, joewoe@fsmail.de, manselton@googlemail.com, wnpp@debian.org:
Bug#720707; Package wnpp. (Sat, 24 Aug 2013 16:33:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Koch <thomas@koch.ro>:
New Bug report received and forwarded. Copy sent to thomas@koch.ro, abe@debian.org, grml@ml.grml.org, formorer@debian.org, mika@grml.org, ft@grml.org, joewoe@fsmail.de, manselton@googlemail.com, wnpp@debian.org. (Sat, 24 Aug 2013 16:33:11 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Thomas Koch <thomas@koch.ro>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: RFP: grml-zsh-config -- zsh configuration that ships with the Debian-based grml distro
Date: Sat, 24 Aug 2013 18:29:08 +0200
Package: wnpp
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

* Package name    : grml-zsh-config
  Version         : ?
  Upstream Author : grml-team (grml.org), Michael Prokop <mika@grml.org>
* URL             : http://grml.org/zsh/#grmlzshconfig
* License         : GPL v2
  Programming Lang: SHELL, ZSH config
  Description     : zsh configuration that ships with the Debian-based grml distro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJSGN9UAAoJEAf8SJEEK6ZaScAQAMy2MSjXkiQJOtLj26nQZWh8
sGD4WKE2gR/2+bourfy9Has7xD736mLAfmDTJxQt1yDXhXpTX9faADZaeRDpgRxB
Gp5BtkDthteCa9NvZY0wz+yvWjYI5f2f5oI4S4Nf3cti14A2VkouwDQ+WvgCVSm9
FA8XTzwlHvysnxuY1Vtmm789L+ZnjsXglyQg7eQWkBLYc9U6U7OqBdJC6F9f2Ka7
J+KhlaGsi+A62u3kbx/7Rf/GQVCOlS8TXuKOyKZvC1tqR0n1SMOWd0dO7QgNNzQX
d3a2aVtTacX1tpWdGKhf4ZHuCBBMe17H4nlIOi0JWNFvQWfTrj0we37a8/EF7/nl
FnXdkayKMmbfrF5aLV+gt7tQARzlhFkIXEYkAkEGBZR9d4EGPFUjPQViifG+TXe6
Y9UzTPIMET91xEiGgYuZY66dKs258eIPniO+7/s/3ngdPudZwxrr7a603NSfwnRy
wLfgT7Bb2iQX1X/V2U8niahryRIqhdMEH9zww77/tS1USI6phL4lKz+bFw2mr3S2
lCntO44smXToqKmgLML5QSXcatS0Pm3SzG+qwZ+Wm7aHHQmzWJNIwrv9ikkdh5BF
dUqMeWG88Jd7Jb1x2FaLdrvJ9VvHAfaZ8Npb82fmownoIB7I4Mxki/e79zgNZaiW
QhCmG5U+ae0V6bm2j7+6
=Na7U
-----END PGP SIGNATURE-----



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#720707; Package wnpp. (Sat, 24 Aug 2013 18:27:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Axel Beckert <abe@debian.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. (Sat, 24 Aug 2013 18:27:04 GMT) Full text and rfc822 format available.

Message #10 received at 720707@bugs.debian.org (full text, mbox):

From: Axel Beckert <abe@debian.org>
To: Thomas Koch <thomas@koch.ro>, 720707@bugs.debian.org
Cc: Debian Zsh Maintainers <pkg-zsh-devel@lists.alioth.debian.org>
Subject: Re: Bug#720707: RFP: grml-zsh-config -- zsh configuration that ships with the Debian-based grml distro
Date: Sat, 24 Aug 2013 20:25:48 +0200
Control: retitle -1 ITP: grml-zshrc -- grml's zsh configuration
Control: owner -1 !

Hi Thomas,

this was a topic on the #grml IRC channel a few weeks ago, too, and
IIRC the grml team liked the idea in general.

There is actually already a year-old proof-of-concept package of
grml's zshrc at https://github.com/xtaran/grml-zshrc -- the current
implementation though needs some changes in the zsh package which
probably won't go in.

So the general design of such a package likely needs some more
thinking. But the plan to split of grml's zshrc into its won package
is there.

Not yet decided is how the zshrc will be provided. Several ideas are
around:

a) Active for all users when installed -- easy, but not so nice
b) Not active by default for anyone -- may not suite laptop users
c) Letting the admin via debconf decide if it's active for all or no
   users by default -- probably the friendliest way

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5



Changed Bug title to 'ITP: grml-zshrc -- grml's zsh configuration' from 'RFP: grml-zsh-config -- zsh configuration that ships with the Debian-based grml distro' Request was from Axel Beckert <abe@debian.org> to 720707-submit@bugs.debian.org. (Sat, 24 Aug 2013 18:27:04 GMT) Full text and rfc822 format available.

Owner recorded as Axel Beckert <abe@debian.org>. Request was from Axel Beckert <abe@debian.org> to 720707-submit@bugs.debian.org. (Sat, 24 Aug 2013 18:27:05 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Axel Beckert <abe@debian.org>:
Bug#720707; Package wnpp. (Sun, 25 Aug 2013 13:00:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Koch <thomas@koch.ro>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Axel Beckert <abe@debian.org>. (Sun, 25 Aug 2013 13:00:05 GMT) Full text and rfc822 format available.

Message #19 received at 720707@bugs.debian.org (full text, mbox):

From: Thomas Koch <thomas@koch.ro>
To: Axel Beckert <abe@debian.org>
Cc: 720707@bugs.debian.org, Debian Zsh Maintainers <pkg-zsh-devel@lists.alioth.debian.org>
Subject: Re: Bug#720707: RFP: grml-zsh-config -- zsh configuration that ships with the Debian-based grml distro
Date: Sun, 25 Aug 2013 14:58:24 +0200
Hi Axel,

thank you very much for taking this! Your question about "how the zshrc will 
be provided" is so common that I proposed a general solution:

http://lists.alioth.debian.org/pipermail/soc-coordination/2012-
February/001156.html

In short and for the start I'd say: just put the files under /usr/share/grml-
zsh-config and provide a shell script that adds the necessary symlinks from my 
current homedir. It's already a big improvement to have the files in the 
archive and to get updates.

Once there is a canonical location for grml-zsh-config I already have my first 
wishlist items:

- Integrate vcsh into the prompt

- make it configurable whether the name of the VCS is shown. I use git 
exclusively so I'm just interested in the branch name.

Beste Grüße, Thomas



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Axel Beckert <abe@debian.org>:
Bug#720707; Package wnpp. (Sun, 25 Aug 2013 13:21:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Frank Terbeck <ft@bewatermyfriend.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Axel Beckert <abe@debian.org>. (Sun, 25 Aug 2013 13:21:04 GMT) Full text and rfc822 format available.

Message #24 received at 720707@bugs.debian.org (full text, mbox):

From: Frank Terbeck <ft@bewatermyfriend.org>
To: Thomas Koch <thomas@koch.ro>
Cc: Axel Beckert <abe@debian.org>, Debian Zsh Maintainers <pkg-zsh-devel@lists.alioth.debian.org>, 720707@bugs.debian.org
Subject: Re: Bug#720707: RFP: grml-zsh-config -- zsh configuration that ships with the Debian-based grml distro
Date: Sun, 25 Aug 2013 15:16:47 +0200
Thomas Koch wrote:
> thank you very much for taking this! Your question about "how the zshrc will 
> be provided" is so common that I proposed a general solution:
>
> http://lists.alioth.debian.org/pipermail/soc-coordination/2012-February/001156.html
>
> In short and for the start I'd say: just put the files under /usr/share/grml-
> zsh-config and provide a shell script that adds the necessary symlinks from my 
> current homedir. It's already a big improvement to have the files in the 
> archive and to get updates.

Yes, thank you! Not having the add-on configuration in /etc sounds like
the right thing to do, because then things can remain in the hands of
the package system.

> Once there is a canonical location for grml-zsh-config I already have my first 
> wishlist items:
>
> - Integrate vcsh into the prompt

Grml's zsh setup uses a rather extensible prompt (since the last few
releases). Generally, I'd like to not include too many special purpose
code in grml's main configuration, because it is already quite large and
complex.

There are some facilities to implement special-purpose prompt support
with grml's new prompts, though. There is an example, that adds
virtual-env support:

  http://bewatermyfriend.org/p/2013/003/

Adding support for vcsh should be fairly straight forward. (Support for
it could also be done via vcs_info and its hook subsystem.)

> - make it configurable whether the name of the VCS is shown. I use git 
> exclusively so I'm just interested in the branch name.

Grml's VCS information is provided by zsh's vcs_info system. That system
is pretty configurable¹ and your wish is already easily solved. You just
need to acknowledge, that grml's setup uses two vcs_info formats: One
for its prompt and the other for setting titles in GNU screen and tmux
based on the currently checked out branch.

  zstyle ':vcs_info:*' formats '[%b] ' 'zsh: %r'
  zstyle ':vcs_info:*' actionformats '[%b|%a] ' 'zsh: %r'

Add colouring to your preference. ;)

Regards, Frank

¹ man zshcontrib | less -p GATHER



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 10:20:48 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.