all repos — nixfiles @ 4a0710cba5943f961fd89385008e23984b0492e5

System and user configuration, managed by nix and home-manager

zsh: Don’t export ssh socket via SSH
Alan Pearce alan@alanpearce.co.uk
Wed, 03 Feb 2016 19:34:18 +0100
commit

4a0710cba5943f961fd89385008e23984b0492e5

parent

867e97a7c1bae699c5d043be26b44aff45fc68a0

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M tag-zsh/config/zsh/zshrctag-zsh/config/zsh/zshrc
@@ -30,7 +30,7 @@ ) 
 users=(alan root toor)
 
-if [[ $os == "gnu" ]]
+if [[ $os == "gnu" && -z $SSH_CLIENT ]]
 then
 	export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
 fi