Усправлен запуск tmux в SSH-сессии

This commit is contained in:
Дмитрий Рамазанов 2019-09-03 04:11:30 +00:00
parent 102f563edd
commit cc8aecfecf

6
.zshrc
View File

@ -140,7 +140,9 @@ alias -g IU='| iconv -c -f utf8 -t cp1251'
# SSH Agent # SSH Agent
#alias ssh='eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet ~/.ssh/id_ed25519) && ssh' #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 if [ -n "$SSH_CONNECTION" ]; then
tmux attach -d || tmux new if [ -z "$TMUX" ]; then
tmux attach -d || tmux new
fi
fi fi