[issue635] zsh: write something like 'name_of_repos (git)' to screen's title

Frank Terbeck bts at bts.grml.org
Sun Feb 22 19:25:48 CET 2009


Frank Terbeck <ft at grml.org> added the comment:

Michael Prokop <bts at bts.grml.org>:
> * Frank Terbeck <ft at bewatermyfriend.org> [20090222 19:09]:
> > Michael Prokop <bts at 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

----------
assignedto: ft
messages: 1947, 1948, 1949, 1950
nosy: ft, mika
priority: wish
status: chatting
title: zsh: write something like 'name_of_repos (git)' to screen's title
topic: grml-etc-core

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue635>
_____________________________________


More information about the Bugs-changes mailing list