Re: Caption to show `pwd` instead of shell?

Axel Beckert <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Organization DeuxChevaux.org -- The Citr oën 2CV Database
Message-ID <[email protected]>
Hi,

On Wed, Aug 07, 2013 at 10:49:10PM +0100, David Woodfall wrote:
> I'm using this caption:
> 
> caption string "%{= 9w}%-w%{+b w}%n-%f %t%{-}%+w%{+b w}"
> 
> What I'd like to do is change each listed window to show the pwd
> instead of shell. I'm using zsh.
> 
> I can't see any way of doing this except to update it every time a
> command is run.

I think that's how it works. I use grml.org's zshrc and it shows many
things in my screen status line (by setting the window name):

* Git branches if I'm in a git repository
* Programs that are currently running in that window

It does not show the current working directory, but I don't think that
should be too difficult.

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | [email protected]  (Mail)
 X   See http://www.asciiribbon.org/              | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.