From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18240 invoked by alias); 25 Jan 2014 18:10:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18366 Received: (qmail 2644 invoked from network); 25 Jan 2014 18:09:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Thorsten Kampe Subject: Re: how can I invoke zsh via screen when logged in via ssh? Date: Sat, 25 Jan 2014 18:51:24 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5de5aacb.dip0.t-ipconnect.de User-Agent: MicroPlanet-Gravity/3.0.4 * TJ Luoma (Wed, 22 Jan 2014 14:54:02 -0500) > I had a thought today that perhaps one answer would be to use > 'screen(1)' as my login shell for those accounts, but then I realized > that I didn't want that to be the shell I use for local logins, just > for SSH logins. That's pretty much the same way I use it. > I wondered if anyone had already done this, so I didn't have to > re-invent the wheel, or might have some experience with potential > problems that I might run into when doing this. > > > 3) What's the 'best' way to invoke screen(1) from .zshenv ? I > already have this: > [...] > > which would, I believe, resume an existing `screen` session if one > existed, but would otherwise just launch `screen` anew. Why don't you simply read the man page and invoke screen with the right options?! Would have saved you tons of time... I suggest you replace all your ssh calls like "ssh user@host" with "ssh -t user@host screen -xRR ssh". That creates a session with name "ssh" or connect to an already running session with that name. Thorsten