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
signature.asc
Description: PGP signature
