Автозапуск tmux при подключении через SSH

This commit is contained in:
Дмитрий Рамазанов 2019-09-02 09:42:18 +00:00
parent 8af73b6e5b
commit 102f563edd

5
.zshrc
View File

@ -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