Correctif autoscreen sur shell pas de login

This commit is contained in:
Almtesh committed 2022-06-02 06:53:36 +02:00
1 parent fe05610919
commit 5ab1aa11e9
1 file changed
+4
+4
View File
@@ -6,6 +6,10 @@ if [ "x$SSH_CLIENT" != "x" ]; then
ln -sf "$SSH_AUTH_SOCK" "$SOCK"
export SSH_AUTH_SOCK="$SOCK"
fi
if [ x"$0" = x"-zsh" ];then
screen -xR && logout
else
exec screen -xR
fi
fi
fi