[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Kevin Van Workum
Subject: Re: Caption to show `pwd` instead of shell?
Date: Thu, 8 Aug 2013 08:03:47 -0400

On Wed, Aug 7, 2013 at 5:49 PM, David Woodfall <address@hidden> 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.

Is there a way to do this at all?


I have this as my caption:

 caption always "%{kc}%n: %t%? @%u%?%? %?%=%D-%M-%d %c"

and this as my precmd in .zshrc:

precmd() {
    if [ "$TERM" = "screen" ]; then
echo -ne "address@hidden:${PWD/#$HOME/~}\033\\";

screen-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]