Re: [dev] [st] [PATCH 2/2] Keep end of lines in memory when resizing terminal

From: ilf <ilf_AT_zeromail.org>
Date: Mon, 27 Mar 2017 17:51:53 +0200

hiro:
> If I run ssh from that environment it shouldn't just start the
> configured shell in the server that I login to. It should instead run
> dtach on the server and the shell inside, so that when I resume my
> laptop and regain network connectivity that same script that wraps ssh
> will start a new ssh session and attach to the old dtach'ed shell
> automatically.

if [ ! $TMUX ] && [[ $(hostname) = "alice" ]]
then
        tmux attach-session || tmux new-session
        logout
fi

-- 
ilf
Über 80 Millionen Deutsche benutzen keine Konsole. Klick dich nicht weg!
		-- Eine Initiative des Bundesamtes für Tastaturbenutzung

Received on Mon Mar 27 2017 - 17:51:53 CEST

This archive was generated by hypermail 2.3.0 : Mon Mar 27 2017 - 18:00:14 CEST