2018-03-16 12:02:58 +01:00
|
|
|
if [ "x$SSH_CLIENT" != "x" ]; then
|
2019-08-26 14:35:56 +02:00
|
|
|
if [ "$TERM" != "screen" -a "$TERM" != "screen.xterm-256color" ]; then
|
2018-03-16 12:02:58 +01:00
|
|
|
SOCK="$HOME/.zsh/ssh_auth_sock"
|
|
|
|
if [ ! -z "$SSH_AUTH_SOCK" -a "$SSH_AUTH_SOCK" != "$SOCK" ]; then
|
|
|
|
rm -f "$SOCK"
|
|
|
|
ln -sf "$SSH_AUTH_SOCK" "$SOCK"
|
|
|
|
export SSH_AUTH_SOCK="$SOCK"
|
|
|
|
fi
|
|
|
|
screen -xR && logout
|
|
|
|
fi
|
|
|
|
fi
|