diff --git a/.zshrc b/.zshrc index 6945e22..066725c 100644 --- a/.zshrc +++ b/.zshrc @@ -140,7 +140,9 @@ 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 +# start tmux if [ -n "$SSH_CONNECTION" ]; then - tmux attach -d || tmux new + if [ -z "$TMUX" ]; then + tmux attach -d || tmux new + fi fi \ No newline at end of file