On Wed, Aug 7, 2013 at 5:49 PM, David Woodfall <d...@dawoodfall.net> 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?
>
> D.
>
>
>
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 "\033k${USER}@${HOSTNAME}:${PWD/#$HOME/~}\033\\";
    fi
}


>
> ______________________________**_________________
> screen-users mailing list
> screen-users@gnu.org
> https://lists.gnu.org/mailman/**listinfo/screen-users<https://lists.gnu.org/mailman/listinfo/screen-users>
>

-- 

_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to