diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-10-22 12:59:00 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-10-22 12:59:00 +0000 |
commit | df8236d9006c66d91868cad4a6f82645e068c1bd (patch) | |
tree | 7cdd8d1daf48e9faf6619a509d994a93d972a383 | |
parent | af64784568684000f99dc29de891217dfd07dd7e (diff) |
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
-rw-r--r-- | zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |