Zsh Mailing List Archive
Messages sorted by:
Re: updating the shell environment in screen (was Re: prompt and ssh)
- X-seq: zsh-users 14180
- From: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- To: Vincent Lefevre <vincent@xxxxxxxxxx>
- Subject: Re: updating the shell environment in screen (was Re: prompt and ssh)
- Date: Fri, 29 May 2009 10:35:56 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20090527011034.GA18313@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <e7db6e960905190954j7be72739p6b521bca8e90fe7f@xxxxxxxxxxxxxx> <20090519200217.35368.qmail@xxxxxxxxxxx> <20090521074103.GN27141@xxxxxxxxxxxxxxxxxxx> <20090524222632.GC26513@xxxxxxxxx> <154941E5-F5C5-4B9E-97E1-17EFABF9CDC8@xxxxxxxxxxx> <20090526145145.GA28557@xxxxxxxxx> <20090527011034.GA18313@xxxxxxxxxxxxxxxxxxx>
On 27.05.2009, at 03:10, Vincent Lefevre wrote:
On 2009-05-26 07:51:46 -0700, Wayne Davison wrote:
I forgot to mention that I have term-conditionional setup of my
function. Inside screen, my $TERM is always "screen". There could
problem if I login to a remote system from inside screen and that
system had this rc code, though, since the TERM=screen code would
trigger when it shouldn't. Another possible triggering variable is
$WINDOW, which will be set to the screen's window number when inside
screen -- as long as ssh is not set to pass-through this variable, it
may well be a better trigger mechanism.
You may need to use both, since if you start a terminal (e.g. xterm)
from screen, the WINDOW variable will be inherited.
Didn't know about the WINDOW variable, thanks.
Another issue is if you have two X11-Forwarding sessions with two
shells that both attach to the same screen using screen -x, which is
my daily use case. You would have to manage two different DISPLAY
I do not have a solution for this yet. It's a pity that screen has so
many features but not this.
But now the discussion is not really about zsh anymore.
Messages sorted by: