Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: updating the shell environment in screen (was Re: prompt and ssh)



On 2009-05-26 07:51:46 -0700, Wayne Davison wrote:
> I forgot to mention that I have term-conditionional setup of my preexec
> function.  Inside screen, my $TERM is always "screen".  There could be a
> problem if I login to a remote system from inside screen and that remote
> 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.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author