From 102f563edd3f40cc1166b81701a7c2c80b9fae68 Mon Sep 17 00:00:00 2001 From: eKa Date: Mon, 2 Sep 2019 09:42:18 +0000 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D1=83=D1=81=D0=BA=20tmux=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B8=20=D1=87?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B7=20SSH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index c64b2ed..6945e22 100644 --- a/.zshrc +++ b/.zshrc @@ -139,3 +139,8 @@ alias -g IU='| iconv -c -f utf8 -t cp1251' # SSH Agent #alias ssh='eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet ~/.ssh/id_ed25519) && ssh' + +# start tmux on SSH-sessions +if [ -n "$SSH_CONNECTION" ]; then + tmux attach -d || tmux new +fi \ No newline at end of file