From df8236d9006c66d91868cad4a6f82645e068c1bd Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 22 Oct 2006 12:59:00 +0000 Subject: Be smarter about that .ssh-auth-sock link git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@227 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 402eeb2..92c048b 100644 --- a/zshrc +++ b/zshrc @@ -362,7 +362,7 @@ WATCHFMT='%n %a %l from %m at %t.' [ -f COMMANDMENTS ] && cat COMMANDMENTS -if [ "$SSH_AUTH_SOCK" != "" ] ; then +if [ "$SSH_AUTH_SOCK" != "" ] && [ "$SSH_AUTH_SOCK" != "$HOME/.ssh-auth-sock" ] ; then if ! [ -e "$HOME/.ssh-auth-sock" ] || [ "`readlink $HOME/.ssh-auth-sock`" != "$SSH_AUTH_SOCK" ]; then echo "Setting ~/.ssh-auth-sock." rm -f "$HOME/.ssh-auth-sock" -- cgit v1.2.3