From 47455591189fb6f89b5e872701bf9a2c90321501 Mon Sep 17 00:00:00 2001 From: hjp Date: Fri, 17 Aug 2001 08:55:51 +0000 Subject: [PATCH] Set XAUTHORITY only if it isn't already set (openssh sets it to nonstandard location). --- .zshenv | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.zshenv b/.zshenv index cf4c0dd..37d15d8 100644 --- a/.zshenv +++ b/.zshenv @@ -102,7 +102,10 @@ elif [ -x /usr/local/bin/less ] then export PAGER="/usr/local/bin/less -i" fi -export XAUTHORITY=$HOME/.Xauthority +if [ -z "$XAUTHORITY" ] +then + export XAUTHORITY=$HOME/.Xauthority +fi case "$HOST" in *.*)