Correctif autoscreen sur shell pas de login

This commit is contained in:
Sasha MOREL 2022-06-02 06:53:36 +02:00
parent fe05610919
commit 5ab1aa11e9
1 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,10 @@ if [ "x$SSH_CLIENT" != "x" ]; then
ln -sf "$SSH_AUTH_SOCK" "$SOCK" ln -sf "$SSH_AUTH_SOCK" "$SOCK"
export SSH_AUTH_SOCK="$SOCK" export SSH_AUTH_SOCK="$SOCK"
fi fi
if [ x"$0" = x"-zsh" ];then
screen -xR && logout screen -xR && logout
else
exec screen -xR
fi
fi fi
fi fi