BTS

Issue635

Title zsh: write something like 'name_of_repos (git)' to screen's title
Priority wish Status resolved
Superseder Nosy List ft, mika
Assigned To ft Topics grml-etc-core

Created on 2009-02-22.17:47:17 by mika, last changed 2009-02-23.13:01:26 by ft.

Messages
msg1954 (view) Author: ft Date: 2009-02-23.13:01:23
We believe that your issue has been closed by the upload of
Version 0.3.64 of grml-etc-core from Frank Terbeck <ft@grml.org>.
The explanation is attached below

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

Format: 1.8
Date: Mon, 23 Feb 2009 00:54:05 +0100
Source: grml-etc-core
Binary: grml-etc-core
Architecture: source all
Version: 0.3.64
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Frank Terbeck <ft@grml.org>
Description: 
 grml-etc-core - core ecetera files for the grml system
Changes: 
 grml-etc-core (0.3.64) unstable; urgency=low
 .
   * zshrc: rewrite of zurl() by Alexander Steinböck [Closes: issue627]
   * zshrc: put "zsh: repo-name" into screen title if the user is in a
     VCS-controlled directory [Closes: issue635]
Checksums-Sha1: 
 e89d92a4cfb0f75aeb8350f3b18a6b5629e09bcd 873 grml-etc-core_0.3.64.dsc
 4f5c41195d9932e7554d01b40fc9dbc99b87a9af 108861 grml-etc-core_0.3.64.tar.gz
 ed05506f05ff8840ae9a31e67348c9d6515aa50b 111424 grml-etc-core_0.3.64_all.deb
Checksums-Sha256: 
 b34e6d733241ab8191872988a3ef03c5f8fd603d8836bb987aad4aae967b7e3b 873 grml-etc-core_0.3.64.dsc
 c3681d9ac1ef656cd236f5737925d81c1340702d92eb42ec35d124f33941e51a 108861 grml-etc-core_0.3.64.tar.gz
 11924b3017f0346a53777165cef98edc7ea37f489a48c01846a28d95581b4185 111424 grml-etc-core_0.3.64_all.deb
Files: 
 f899993d4f1f4e682af8dfcae11baf7d 873 grml optional grml-etc-core_0.3.64.dsc
 8bf00295f87653f4ccec9a0e2f3b28dc 108861 grml optional grml-etc-core_0.3.64.tar.gz
 0ccfba70bcec0f3d3710a49ecc281026 111424 grml optional grml-etc-core_0.3.64_all.deb

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

iD8DBQFJopyu2N9T+zficugRAuuJAJ9FR5TG0GwFcHZqyA9BRmDuOmdFwQCfYwGj
+J/t1EIeIrab8a+zqhNMSkQ=
=Vfaj
-----END PGP SIGNATURE-----
msg1950 (view) Author: ft Date: 2009-02-22.18:25:47
Michael Prokop <bts@bts.grml.org>:
> * Frank Terbeck <ft@bewatermyfriend.org> [20090222 19:09]:
> > Michael Prokop <bts@bts.grml.org>:
> > > I usually have >=5 open zsh session inside GNU screen, several of them have 
> > > something like /grml/git/$REPOS as working directory. Having 'zsh' for all of 
> > > them as automatically set GNU screen title is somewhat annyoing. Frank, what do 
> > > you think about setting "$REPOS ($VCS)" as GNU screen title in such a case as 
> > > we now have the rocking vcs_info() feature? :)
> 
> > I think it's a very reasonable feeling especially if you're working in
> > a lot of different repositories, like you do when working on grml.
> > So, I like the idea.
> 
> > I'd say we forget about the vcs name, though.
> > I would favor this format: 'zsh: repo_name'
> 
> > Like that, you still know it's basically zsh running but you also get
> > the repository's name, which is the important point, IMHO.
> 
> Ah, good idea!
> 
> What's the best way to retrieve "repo_name" as fast and simple as
> possible?

Well, that's what vcs_info does already. So, we really don't to do
anything to *retrieve* the information.

Basically, this boils down, to add another format to vcs_info's
configuration to get another $vcs_info_message_N_ variable set up.

Regards, Frank
msg1949 (view) Author: mika Date: 2009-02-22.18:13:37
* Frank Terbeck <ft@bewatermyfriend.org> [20090222 19:09]:
> Michael Prokop <bts@bts.grml.org>:
> > I usually have >=5 open zsh session inside GNU screen, several of them have 
> > something like /grml/git/$REPOS as working directory. Having 'zsh' for all of 
> > them as automatically set GNU screen title is somewhat annyoing. Frank, what do 
> > you think about setting "$REPOS ($VCS)" as GNU screen title in such a case as 
> > we now have the rocking vcs_info() feature? :)

> I think it's a very reasonable feeling especially if you're working in
> a lot of different repositories, like you do when working on grml.
> So, I like the idea.

> I'd say we forget about the vcs name, though.
> I would favor this format: 'zsh: repo_name'

> Like that, you still know it's basically zsh running but you also get
> the repository's name, which is the important point, IMHO.

Ah, good idea!

What's the best way to retrieve "repo_name" as fast and simple as
possible?

regards,
-mika-
msg1948 (view) Author: ft Date: 2009-02-22.18:09:24
Michael Prokop <bts@bts.grml.org>:
> I usually have >=5 open zsh session inside GNU screen, several of them have 
> something like /grml/git/$REPOS as working directory. Having 'zsh' for all of 
> them as automatically set GNU screen title is somewhat annyoing. Frank, what do 
> you think about setting "$REPOS ($VCS)" as GNU screen title in such a case as 
> we now have the rocking vcs_info() feature? :)

I think it's a very reasonable feeling especially if you're working in
a lot of different repositories, like you do when working on grml.
So, I like the idea.

I'd say we forget about the vcs name, though.
I would favor this format: 'zsh: repo_name'

Like that, you still know it's basically zsh running but you also get
the repository's name, which is the important point, IMHO.

Regards, Frank
msg1947 (view) Author: mika Date: 2009-02-22.17:47:15
I usually have >=5 open zsh session inside GNU screen, several of them have 
something like /grml/git/$REPOS as working directory. Having 'zsh' for all of 
them as automatically set GNU screen title is somewhat annyoing. Frank, what do 
you think about setting "$REPOS ($VCS)" as GNU screen title in such a case as 
we now have the rocking vcs_info() feature? :)

thx && regards,
-mika-
History
Date User Action Args
2009-02-23 13:01:26ftsetstatus: chatting -> resolved
nosy: mika, ft
messages: + msg1954
2009-02-22 18:25:48ftsetnosy: mika, ft
messages: + msg1950
2009-02-22 18:13:37mikasetnosy: mika, ft
messages: + msg1949
2009-02-22 18:09:24ftsetstatus: unread -> chatting
nosy: mika, ft
messages: + msg1948
2009-02-22 17:47:17mikacreate