On Tue, 7 Oct 2014 18:46:58 +0200, meino.cra...@gmx.de wrote:

> > > Is there any "shorter path" to what I am trying to do -- without the
> > > cascade of shells which do nothing but waiting of the child process
> > > to end?  
> > 
> > I have this in ~/.zshrc.
> > 
> > if [[ "${TERM}" != "screen" ]] && [[ -z "${STY}" ]] && [[ ! -f
> > ~/.noscreen ]]; then screen -xRR && exit
> >     fi

> this logs me out instantly....
> 
> If executed directly from the commandline it works.
> Is there any other settings, which may effect screen?
> ...there is no .screenrc...

Not that I'm aware of, but it "just works"[tm] for me.

I don't have a .screenrc either and /etc/screenrc is standard apart from
changing the command key and caption bar.

Check what $TERM is set to both in and out of screen. Whenver this has
not worked as exected in the past it has been because of changes to
environment variables.


-- 
Neil Bothwick

Very funny Scotty.. now beam down my pants!

Attachment: signature.asc
Description: PGP signature

Reply via email to