|
if [ "x$SSH_CLIENT" != "x" ]; then
|
|
if [ "$TERM" != "screen" ]; then
|
|
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
|