diff --git a/rc/auto_screen.rc b/rc/auto_screen.rc index 6280bd8..26935fd 100644 --- a/rc/auto_screen.rc +++ b/rc/auto_screen.rc @@ -1,5 +1,5 @@ if [ "x$SSH_CLIENT" != "x" ]; then - if [ "$TERM" != "screen" ]; then + if [ "$TERM" != "screen" -a "$TERM" != "screen.xterm-256color" ]; then SOCK="$HOME/.zsh/ssh_auth_sock" if [ ! -z "$SSH_AUTH_SOCK" -a "$SSH_AUTH_SOCK" != "$SOCK" ]; then rm -f "$SOCK"