[SLL] Screen
Will Mengarini
seldon at eskimo.com
Fri Jan 18 04:10:48 PST 2008
* Mike Stunes <stunes at MIT.EDU> [2008-01-17 22:43]:
> What I'm wondering is, is it safe to have something like this in my .zshrc:
>
> if [[ TERM != "screen" ]]; then
> exec screen
> fi
In my screen sessions, TERM="xterm", because I get better color
handling. This is configured in my .screenrc by 'term xterm'.
If you ever did something such that starting screen did not
guarantee TERM="screen", then your .zshrc would endless-loop.
The problem with a hack like 'exec screen' is that you can
forget about it - that's the whole point - so then you're very likely,
years later, to try another hack like 'term xterm',
without realizing the interactions between the two.
Testing [[ -z $STY ]] is slightly safer but still very dangerous.
--
Will Mengarini <seldon at eskimo.com>
Free software: the Source will be with you, always.
More information about the linux-list
mailing list